AudioConverterFillComplexBuffer and '!buf' error
AudioConverterFillComplexBuffer and '!buf' error
- Subject: AudioConverterFillComplexBuffer and '!buf' error
- From: "Damien Chavarria" <email@hidden>
- Date: Wed, 7 Nov 2007 22:14:34 +0100
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