Uninitializes an audio unit.


func AudioUnitUninitialize(_ inUnit: AudioUnit) -> OSStatus



The audio unit that you want to uninitialize.

Return Value

A result code.


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.

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