Contents

registerSubclass(_:as:name:version:)

Registers an audio unit subclass.

Declaration

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

Parameters

  • cls:

    An Auaudiounit subclass.

  • componentDescription:

    The component to register.

  • name:

    The component’s name, using the convention <manufacturer name>:<audio unit name>.

  • version:

    The component’s version.

Discussion

This method dynamically registers the supplied AUAudioUnit subclass with the Audio Component system, in the context of the current process only. After you’ve registered the subclass, instantiate it by calling one of the following:

See Also

Customizing the Audio Unit Behavior