Initializer

init(componentDescription:options:)

Synchronously initializes a new audio unit object.

Declaration

init(componentDescription: AudioComponentDescription, options: AudioComponentInstantiationOptions = []) throws

Parameters

componentDescription

The component to instantiate.

options

Options for loading the unit in-process or out-of-process.

outError

Returns an error in the event of a failure, or nil if initialization succeeded.

Return Value

An initialized audio unit, or nil if initialization failed.

Discussion

This is the designated initializer.

A single audio unit subclass may implement multiple audio units—for example, an effect that can also function as a generator, or a cluster of related effects.

See Also

Initialization

init(componentDescription: AudioComponentDescription)

Synchronously initializes a new audio unit object.

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