Structure

AudioBuffer

Holds and describes a buffer of audio data.

Declaration

typedef struct AudioBuffer {
    ...
} AudioBuffer;

Overview

An AudioBuffer structure holds a single buffer of audio data in its mData field. The buffer can represent two different sorts of audio:

  • A single, monophonic, noninterleaved channel of audio

  • Interleaved audio with any number of channels—as designated by the mNumberChannels field

Noninterleaved formats are used primarily by audio units and audio converters.

Topics

Instance Properties

mData

A pointer to a buffer of audio data.

mDataByteSize

The number of bytes in the buffer pointed at by the mData field.

mNumberChannels

The number of interleaved channels in the buffer. If the number is 1, the buffer is noninterleaved.