Type Method


Registers an audio unit component implemented as an AUAudioUnit subclass.


class func registerSubclass(_ cls: AnyClass, as componentDescription: AudioComponentDescription, name: String, version: UInt32)



An AUAudioUnit subclass.


The component to register.


The component’s name.


The component’s version.


This method dynamically registers the supplied AUAudioUnit subclass with the Audio Component system, in the context of the current process only. After registering the subclass, it can be instantiated via the AudioComponentInstanceNew(_:_:) function, the init(componentDescription:) or init(componentDescription:options:) method, or via any other APIs which instantiate audio units via their component descriptions (e.g. Audio Toolbox or AVFoundation APIs).

See Also

Audio Unit Implementations

var internalRenderBlock: AUInternalRenderBlock

The block which you must provide, via a getter, in order to implement rendering.

func shouldChange(to: AVAudioFormat, for: AUAudioUnitBus) -> Bool

This is called when you set the format on a bus.

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