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:
The init(componentDescription:) method.
The init(componentDescription:options:) method.
The AVAudioUnit instantiate(with:options:completionHandler:) method.
The AudioComponentInstanceNew(_:_:) function.