Re: AudioFile unable to open MP3
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