Class

AVAudioPCMBuffer

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

Declaration

@interface 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

- initWithPCMFormat:frameCapacity:

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

Getting and Setting the Frame Length

frameLength

The current number of valid sample frames in the buffer.

Accessing PCM Buffer Data

floatChannelData

The buffer's audio samples as floating point values.

frameCapacity

The buffer's capacity, in audio sample frames.

int16ChannelData

Access the buffer's int16_t audio samples.

int32ChannelData

Access the buffer's int32_t audio samples.

stride

The buffer's number of interleaved channels.

Relationships

Inherits From

See Also

Specialized Audio Buffers

AVAudioCompressedBuffer

A subclass of AVAudioBuffer for use with compressed audio formats.