Contents

init(standardFormatWithSampleRate:channels:)

Creates an audio format instance with the specified sample rate and channel count.

Declaration

init?(standardFormatWithSampleRate sampleRate: Double, channels: AVAudioChannelCount)

Parameters

  • sampleRate:

    The sampling rate, in hertz.

  • channels:

    The channel count.

Return Value

A new AVAudioFormat instance, or nil if the initialization fails.

Discussion

The returned AVAudioFormat instance uses the AVAudioCommonFormat.pcmFormatFloat32 format.

See Also

Related Documentation

Creating a New Audio Format Representation