AudioConverterFillComplexBuffer returns '!dat'/kAudioCodecUnsupportedFormatError
AudioConverterFillComplexBuffer returns '!dat'/kAudioCodecUnsupportedFormatError
- Subject: AudioConverterFillComplexBuffer returns '!dat'/kAudioCodecUnsupportedFormatError
- From: Hendrik Schreiber <email@hidden>
- Date: Tue, 22 Nov 2011 12:29:37 +0100
Hi,
I'm trying to decode an Apple Lossless file to 16bit signed PCM using the AudioConverter API. After setting up the converter, unfortunately, the very first call to AudioConverterFillComplexBuffer returns '!dat' (kAudioCodecUnsupportedFormatError) and thus fails.
The same code works like a charm for other formats, like mp3. The only thing I can tell is different, is that the Apple Lossless has mFormatFlags set to 1 (=kAudioFormatFlagIsFloat).
Obviously I'm doing something wrong here, but the documentation ("This codec does not support the specified format.") is a little thin. Also, if the codec was not to support the desired format, I would have expected an error when calling AudioConverterNew.
Does anybody know, what kAudioCodecUnsupportedFormatError really means in this context?
Thanks in advance,
-hendrik
PS: A hint in the docs for AudioConverterFillComplexBuffer that it can return this error would also be appreciated. Without grepping the headers for !dat, it's pretty impossible to find.
_______________________________________________
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