Function

AudioUnitUninitialize

Uninitializes an audio unit.

Declaration

OSStatus AudioUnitUninitialize(AudioUnit inUnit);

Parameters

inUnit

The audio unit that you want to uninitialize.

Return Value

A result code.

Discussion

Before you change an initialize audio unit’s processing characteristics, such as its input or output audio data format or its sample rate, you must first uninitialize it. Calling this function deallocates the audio unit’s resources.

After calling this function, you can reconfigure the audio unit and then call AudioUnitInitialize to reinitialize it.

See Also

Audio Unit Initialization and Rendering Audio

AudioUnitInitialize

Initializes 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.