Type Method

registerSubclass(_:as:name:version:)

Registers an audio unit component implemented as an AUAudioUnit 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.

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 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