Holds and describes a buffer of audio data.


struct AudioBuffer


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.


Instance Properties

var mData: UnsafeMutableRawPointer?

A pointer to a buffer of audio data.

var mDataByteSize: UInt32

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

var mNumberChannels: UInt32

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