Instance Method

allocateRenderResources()

Allocates resources required to render audio.

Declaration

func allocateRenderResources() throws

Parameters

outError

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

Return Value

  • true if the operation succeeded.

  • false 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

func deallocateRenderResources()

Deallocates resources required to render audio.

func reset()

Resets transitory rendering state to its initial state.

var renderResourcesAllocated: Bool

Determines whether the audio unit has allocated render resources.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software