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 15:45:43 -0800
i'm sorry. although i'm sure everyone knew what i meant, the last
sentence of the second paragraph was supposed to say:
setting the converter's output to *de-interleaved*, but not having
mNumberBuffers be at least the requested number of channels, just
crashes.
-mike
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". setting the
converter's output to interleaved, but not having mNumberBuffers be at
least the requested number of channels, just crashes.
so the question is: can an AudioConverter be made to do what i want?
i have my own interleaver/de-interleaver, but i'd rather use one
provided by Apple Buddies if one exists. and clearly, something
exists somewhere, since (presumably) the Output Audio Unit can format
audio for such a device.
-mike
_______________________________________________
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.