Type Method

registerSubclass:asComponentDescription:name:version:

Registers an audio unit component implemented as an AUAudioUnit subclass.

Declaration

+ (void)registerSubclass:(Class)cls asComponentDescription:(AudioComponentDescription)componentDescription name:(NSString *)name version:(UInt32)version;

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 initWithComponentDescription:error: or initWithComponentDescription:options:error: 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

internalRenderBlock

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

- shouldChangeToFormat:forBus:

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

- setRenderResourcesAllocated:

Sets the Boolean value of the renderResourcesAllocated property.

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