afinfo / ExtAudioFile relies on file extensions?
afinfo / ExtAudioFile relies on file extensions?
- Subject: afinfo / ExtAudioFile relies on file extensions?
- From: Brian Whitman <email@hidden>
- Date: Tue, 24 Jan 2006 11:17:01 -0500
In our app we use ExtAudioFile API to do "anything to PCM" conversion.
We have a few files in our testbed that are mis-named; i.e. m4a files
renamed as .mp3 files. For example, we have a file called lily.mp3
that is:
file: "/Users/bwhitman/Desktop/lily.mp3"
type: "M4A "
creator: "hook"
iTunes and QT read and play the file fine, no problem. But afinfo and
our code to open the file fails with a "dta?" error. If I rename the
file to the (correct) lily.m4a, it works fine. I can never remember
what the latest advice is on filename extensions vs. type/creator
codes-- what's the recommended solution for this sort of problem? Is
it a "bug" that the API doesn't handle this, or is it something we
need to write wrappers for?
--
http://variogr.am/
_______________________________________________
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