• 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
Re: AudioFile unable to open MP3
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AudioFile unable to open MP3


  • Subject: Re: AudioFile unable to open MP3
  • From: David Duncan <email@hidden>
  • Date: Mon, 29 May 2006 13:02:30 -0400

On May 29, 2006, at 12:22 PM, Vincent Spader wrote:

I have an MP3 which is unable to be opened by AudioFile.

The MP3 in question is padded with around 630 0's at the beginning of the file. I don't know if this violates the MP3 spec or not, but QuickTime and iTunes can both play it just fine.

If I try opening it with the kAudioFileMP3Type hint, it returns kAudioFileInvalidFileError. Without the hint, it returns kAudioFileUnsupportedFileTypeError. If I try opening it through ExtAudioFile, it also returns a kAudioFileInvalidFileError.

If I remove the 0's, AudioFile is able to open it with no problems. If need be, I can upload the offending file.

Just FYI, but due to the nature of the MP3 file "format" file readers for it have to sniff the file for an MP3-like signature (usually the sync frame). Sounds like AudioFile is giving up the search sooner than QT/iTunes, which is really neither a good or bad thing in the end. When you remove the 630 0s AudioFile finds the MP3 sync frame and goes about it's merry way.
--
Reality is what, when you stop believing in it, doesn't go away.
Failure is not an option. It is a privilege reserved for those who try.


David Duncan

_______________________________________________
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


References: 
 >AudioFile unable to open MP3 (From: Vincent Spader <email@hidden>)

  • Prev by Date: AudioFile unable to open MP3
  • Next by Date: Use of kAudioUnitProperty_OfflineRender
  • Previous by thread: AudioFile unable to open MP3
  • Next by thread: Use of kAudioUnitProperty_OfflineRender
  • Index(es):
    • Date
    • Thread