Function

AudioUnitInitialize

Initializes an audio unit

Declaration

OSStatus AudioUnitInitialize(AudioUnit inUnit);

Parameters

inUnit

The audio unit to initialize.

Return Value

A result code.

Discussion

On successful initialization, the audio formats for input and output are valid and the audio unit is ready to render. During initialization, an audio unit allocates memory according to the maximum number of audio frames it can produce in response to a single render call.

Usually, the state of an audio unit (such as its I/O formats and memory allocations) cannot be changed while an audio unit is initialized.

See Also

Audio Unit Initialization and Rendering Audio

AudioUnitUninitialize

Uninitializes an audio unit.

AudioUnitAddRenderNotify

Registers a callback to receive audio unit render notifications.

AudioUnitRemoveRenderNotify

Unregisters a previously-registered render listener callback function.

AudioUnitRender

Initiates a rendering cycle for an audio unit.

AudioUnitReset

Resets an audio unit’s render state.