Initializer

init(pcmFormat:frameCapacity:)

Initializes a newly allocated PCM audio buffer instance for PCM audio data.

Declaration

init?(pcmFormat format: AVAudioFormat, frameCapacity: AVAudioFrameCount)

Parameters

format

The format of the PCM audio to be contained in the buffer.

frameCapacity

The capacity of the buffer in PCM sample frames.

Return Value

An initialized AVAudioPCMBuffer instance or nil if the format is not in PCM.

See Also