Re: AudioConverterFillComplexBuffer and '!buf' error
Re: AudioConverterFillComplexBuffer and '!buf' error
- Subject: Re: AudioConverterFillComplexBuffer and '!buf' error
- From: William Stewart <email@hidden>
- Date: Wed, 7 Nov 2007 15:57:34 -0800
The error is from AudioCodec.h:
kAudioCodecNotEnoughBufferSpaceError
I suspect that you are feeding partial packets in your Input callback
- you can't do that, so you have to provide packet descriptions and
buffers that contain full packets only.
Bill
On Nov 7, 2007, at 1:14 PM, Damien Chavarria wrote:
Hi fellow coders,
I am using core audio's audio converter API to decode a mp3
bitstream into PCM samples. I have some code that creates and uses
an audio decoder and that used to do the job (although I suspect it
was a little shallow or shaky to start with) back with Tiger. Now
running it on Leopard it didn't work and I first found a problem
where AudioConverterFillComplexBuffer would return a status code of
'!pkg' at which point I found out I needed to provide packet
desciptions which I added. Now it works at first and I'm able to
decode about 1 seond of audio through successive calls to
AudioConverterFillComplexBuffer.
After that period though, I get a new error.
AudioConverterFillComplexBuffer returns '!buf' which I have not seen
before and couldn't find referenced in the documentation. When it
returns I have some samples in the output buffer list but not as
many as I had requested. Does anyone have an idea of what this error
code means, or what would cause it to be returned ? I already
checked the input buffer that I fill through the input proc at that
time and it looks okay (8192 bytes)... Successive calls with newly
read input data all return '!buf' still.
Thank you very much for any insight you can provide,
Cheers,
--
Damien. _______________________________________________
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
_______________________________________________
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