init(commonFormat:sampleRate:channels:interleaved:)
Creates an audio format instance.
Declaration
init?(commonFormat format: AVAudioCommonFormat, sampleRate: Double, channels: AVAudioChannelCount, interleaved: Bool)Parameters
- format:
The audio format.
- sampleRate:
The sampling rate, in hertz.
- channels:
The channel count.
- interleaved:
The Boolean value that indicates whether
formatis in an interleaved state.
Return Value
A new AVAudioFormat instance, or nil if the initialization fails.
Discussion
For information about possible format values, see AVAudioCommonFormat.