A single buffer and the associated data.
typedef struct AudioBuffer {
UInt32 mNumberChannels;
UInt32 mDataByteSize;
void* mData;
} AudioBuffer;
This structure is not used on its own, but with AudioBufferList as
one of its data members. An instance of AudioBuffer keeps
track of the number of channels in the buffer, the size of the buffer,
and a pointer to the buffer data.
CoreAudioTypes.h
Keeps track of multiple buffers.
typedef struct AudioBufferList {
UInt32 mNumberBuffers;
AudioBuffer mBuffers[1];
} AudioBufferList;
When audio data is interleaved, only one buffer is needed in the AudioBufferList; when dealing with multiple mono channels, each will need its own buffer. This is accomplished by allocating the needed space and pointing mBuffers to it.
CoreAudioTypes.h
Last updated: 2004-03-25