View Full Version : MovieAudioExtraction

Nov 16, 2005, 10:34 AM

I'm using the MovieAudioExtraction API's to extract the sound data from a movie. The function MovieAudioExtractionFillBuffer needs a pointer to an AudioBufferList which looks like:

typedef struct AudioBufferList {
UInt32 mNumberBuffers;
AudioBuffer mBuffers[1];
} AudioBufferList;

As you can see, the AudioBufferList needs an array of AudioBuffers. In my case I only need one buffer. AudioBuffer looks like this:

typedef struct AudioBuffer {
UInt32 mNumberChannels;
UInt32 mDataByteSize;
void* mData;
} AudioBuffer;

I was wondering if anyone has used the AudioBuffer structure and could explain how to use its members. I want to extract audio from a movie and store it in an array or possibly a file. Thanks,

-- Mel.