Instance Method

allocateRenderResourcesAndReturnError:

Allocates resources required to render audio.

Declaration

- (BOOL)allocateRenderResourcesAndReturnError:(NSError * _Nullable *)outError;

Parameters

outError

Returns an error if the operation failed, or nil if it succeeded.

Return Value

  • YES if the operation succeeded.

  • NO if the operation failed.

Discussion

Hosts must call this before beginning to render. Subclasses should call the superclass implementation.

This version 3 method is bridged to the version 2 AudioUnitInitialize API.

See Also

Managing Render Resources

- deallocateRenderResources

Deallocates resources required to render audio.

- reset

Resets transitory rendering state to its initial state.

renderResourcesAllocated

Determines whether the audio unit has allocated render resources.