Contents

init(commonFormat:sampleRate:interleaved:channelLayout:)

Creates an audio format instance with the specified audio format, sample rate, interleaved state, and channel layout.

Declaration

init(commonFormat format: AVAudioCommonFormat, sampleRate: Double, interleaved: Bool, channelLayout layout: AVAudioChannelLayout)

Parameters

  • format:

    The audio format.

  • sampleRate:

    The sampling rate, in hertz.

  • interleaved:

    The Boolean value that indicates whether format is in an interleaved state.

  • layout:

    The channel layout, which must not be nil.

Return Value

A new AVAudioFormat instance.

Discussion

For information about possible format values, see AVAudioCommonFormat.

See Also

Related Documentation

Creating a New Audio Format Representation