Re: Accessing Audio Samples in Cocoa

2008-08-25 Thread Jean-Daniel Dupas
That's why you have to set the output format. If you set it to be Interleaved 16 bits Integer, it will be UInt16 interleaved. And if you set the channel layout to kAudioChannelLayoutTag_Stereo, it will be as you expect: first left, second right, third left, etc… You cannot make any asusumptio

Re: Accessing Audio Samples in Cocoa

2008-08-25 Thread Joseph Ayers
Hi Jean-Daniel: My issue is with the structure of the actual buffer and how to access the individual audio data samples. For example, is each data sample a UInt16 and can one count on the first sample pointed at by the buffer pointer being the left channel, the second sample the right channel a

Re: Accessing Audio Samples in Cocoa

2008-08-25 Thread Jean-Daniel Dupas
Le 25 août 08 à 16:02, Joseph Ayers a écrit : I am interested in doing some signal processing on the audio channels of a QuickTime Movie. I can retrieve the buffer using MovieAudioExtractionFillBuffer, but the available examples specify the buffer as type Byte*. I am interested in decomposi

Accessing Audio Samples in Cocoa

2008-08-25 Thread Joseph Ayers
I am interested in doing some signal processing on the audio channels of a QuickTime Movie. I can retrieve the buffer using MovieAudioExtractionFillBuffer, but the available examples specify the buffer as type Byte*. I am interested in decomposing the buffer into the left and right channel data