• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
mp3 AudioConverter hangs
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: Thread issue - sure can use some help
  • Next by Date: Re: Re: AudioOutputUnit and QT audio extraction - back to basics
  • Previous by thread: Re: Thread issue - sure can use some help
  • Next by thread: Re: why does the MovieAudioExtraction API require a "sample rollback?"
  • Index(es):
    • Date
    • Thread