Re: AudioConverterFillComplexBuffer returns '!dat'/kAudioCodecUnsupportedFormatError
Re: AudioConverterFillComplexBuffer returns '!dat'/kAudioCodecUnsupportedFormatError
- Subject: Re: AudioConverterFillComplexBuffer returns '!dat'/kAudioCodecUnsupportedFormatError
- From: "David M. Cotter" <email@hidden>
- Date: Tue, 22 Nov 2011 11:17:15 -0800
i can help with this
send me the file and i'll look at it
it may be you need to specify the output format of the converter audio unit to be integer
On Nov 22, 2011, at 3:29 AM, Hendrik Schreiber wrote:
> 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