1. Welcome to the new MacRumors forums. See our announcement and read our FAQ


Discussion in 'Mac Programming' started by run2thesun, Nov 16, 2005.

  1. macrumors newbie


    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 {
    [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:

    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.

Share This Page