init(standardFormatWithSampleRate:channelLayout:)
Creates an audio format instance as a deinterleaved float with the specified sample rate and channel layout.
Declaration
init(standardFormatWithSampleRate sampleRate: Double, channelLayout layout: AVAudioChannelLayout)Parameters
- sampleRate:
The sampling rate, in hertz.
- layout:
The channel layout, which must not be
nil.
Return Value
A new AVAudioFormat instance.
Discussion
The returned AVAudioFormat instance uses the AVAudioCommonFormat.pcmFormatFloat32 format.