Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

run2thesun

macrumors newbie
Original poster
Nov 3, 2005
9
0
Hi,

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:

Code:
typedef struct AudioBufferList {
[INDENT]UInt32 mNumberBuffers;
AudioBuffer mBuffers[1];[/INDENT]
} AudioBufferList;

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

Code:
typedef struct AudioBuffer {
[INDENT]UInt32 mNumberChannels;
UInt32 mDataByteSize;
void* mData;[/INDENT]
} 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.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.