AudioConverterFillComplexBuffer returns paramErr
AudioConverterFillComplexBuffer returns paramErr
- Subject: AudioConverterFillComplexBuffer returns paramErr
- From: David Geldreich <email@hidden>
- Date: Fri, 16 Jan 2009 15:41:08 +0100
Hello all,
in my application, for any input device, I would like to have a
certain layout of my AudioBufferList :
- kAudioFormatLinearPCM
- 1 channel per buffer encoded in float
- as many buffer that there is channels in input
- ...
As input could be interleaved, compressed, encoded, ... I am trying to
use an AudioConverter to get the layout I need. But when calling
AudioConverterFillComplexBuffer I got a paramErr error.
Is it possible to use AudioConverter to convert one AudioBufferList
with one buffer containing 2 interleaved channels in an
AudioBufferList with 2 buffers each containing one channel ?
There is not much sample using AudioConverter and its documentation is
"minimal" :-)
I attach my test to reproduce my problem.
Thanks in advance for pointing my misuse of the AudioConverter API.
David
Attachment:
main.cpp
Description: Binary data
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden