Class

AVAudioPCMBuffer

A subclass of AVAudioBuffer, for use with PCM audio formats.

Declaration

class AVAudioPCMBuffer : AVAudioBuffer

Overview

The PCM buffer class also provides methods that are useful for manipulating buffers of audio in PCM format.

Topics

Creating a PCM Audio Buffer

init?(pcmFormat: AVAudioFormat, frameCapacity: AVAudioFrameCount)

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

Getting and Setting the Frame Length

var frameLength: AVAudioFrameCount

The current number of valid sample frames in the buffer.

Accessing PCM Buffer Data

var floatChannelData: UnsafePointer<UnsafeMutablePointer<Float>>?

The buffer's audio samples as floating point values.

var frameCapacity: AVAudioFrameCount

The buffer's capacity, in audio sample frames.

var stride: Int

The buffer's number of interleaved channels.

Relationships

Inherits From

Conforms To

See Also

Specialized Audio Buffers

class AVAudioCompressedBuffer

A subclass of AVAudioBuffer for use with compressed audio formats.