Instance Method

initWithComponentDescription:error:

Synchronously initializes a new audio unit object.

Declaration

- (instancetype)initWithComponentDescription:(AudioComponentDescription)componentDescription error:(NSError * _Nullable *)outError;

Parameters

componentDescription

The component to instantiate.

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

- initWithComponentDescription:options:error:

Synchronously initializes a new audio unit object.