mp3 AudioConverter hangs
mp3 AudioConverter hangs
- Subject: mp3 AudioConverter hangs
- From: Dominic Feira <email@hidden>
- Date: Wed, 5 Apr 2006 23:16:36 -0400
I just wanted to post this to the list in case somebody else runs
into the same problem I did.
If you are decoding mp3 packets, make sure to return correct packet
descriptions in your AudioConverterFillComplexBuffer callback.
It turns out that returning NULL for the packet descriptions also
works. I'm not sure if this is intentional or a fluke. So, there
are 3 possibilities that can be returned:
1. Properly filled out packet descriptions.
2. Improperly filled out packet descriptions, or a blob of
descriptions that isn't filled out at all. This causes the converter
to hang. This was hard to diagnose, but it does make sense afterwards.
3. Returning NULL packet descriptions. This works, but probably
SHOULD NOT be relied upon. Do the right thing and fill out the
packet descriptions that the callback asks for.
I spent way more time than I should have on this. I hope this
message will save someone from making the same mistake I did.
Dominic Feira / Code Monkey / Ambrosia Software, Inc.
_______________________________________________
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