Re: AudioConverterFillComplexBuffer and complex buffers
Re: AudioConverterFillComplexBuffer and complex buffers
- Subject: Re: AudioConverterFillComplexBuffer and complex buffers
- From: Michael Thornburgh <email@hidden>
- Date: Wed, 31 Mar 2004 17:05:08 -0800
right. and i'm asking about when that AudioBufferList, passed to
AudioConverterFillComplexBuffer and into which i'd like converted audio
written by the Audio Converter, is configured as mNumberBuffers=2 and
each AudioBuffer's mNumberChannels=2, for a total of 4 channels
arranged as two streams of two interleaved channels each. is there a
way to configure the AudioConverter so that it'll convert samples into
an AudioBufferList arranged like that?
-mike
On Mar 31, 2004, at 4:52 PM, James McCartney wrote:
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.