Re: AudioConverterFillComplexBuffer and complex buffers
Re: AudioConverterFillComplexBuffer and complex buffers
- Subject: Re: AudioConverterFillComplexBuffer and complex buffers
- From: James McCartney <email@hidden>
- Date: Wed, 31 Mar 2004 16:52:25 -0800
On Mar 31, 2004, at 3:35 PM, Michael Thornburgh wrote:
i don't see a way to use an AudioConverter to transform, for example,
an AudioBufferList of 4 mono streams (like you might have in
de-interleaved land working with some audio units) into an
AudioBufferList with two streams of interleaved stereo, like you might
get in an IOProc for some device.
i've done some experiments, and it looks like when you use
AudioConverterFillComplexBuffer, having set the output format to
interleaved, and pass in an ABL with mNumberBuffers set to more than
one, it returns -50, which i guess is "paramErr".
The buffer you pass in to AudioConverterFillComplexBuffer is where it
will write its output. That should be the interleaved buffer.
The input to the AudioConverter is given to the AudioConverter by your
AudioConverterComplexInputDataProc. That is the non-interleaved buffer.
-
james mccartney
apple coreaudio
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.