Type Method

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

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.