Instance Method

initWithLayout:

Initialize an audio channel layout object using an existing one.

Declaration

- (instancetype)initWithLayout:(const AudioChannelLayout *)layout;

Parameters

layout

The existing AudioChannelLayout object.

Return Value

An initialized AVAudioChannelLayout object.

Discussion

If the provided audio channel layout object’s tag is kAudioChannelLayoutTag_UseChannelDescriptions, this initializer attempts to convert it to a more specific tag.

See Also

Creating an AVAudioChannelLayout Instance

+ layoutWithLayout:

Creates a new audio channel layout object from an existing one.

+ layoutWithLayoutTag:

Creates a new audio channel layout object using an audio channel layout tag.

- initWithLayoutTag:

Initialize an audio channel layout object using a layout tag.