• 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
afinfo / ExtAudioFile relies on file extensions?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: afinfo / ExtAudioFile relies on file extensions?
      • From: Doug Wyatt <email@hidden>
  • Prev by Date: AULab & Garageband
  • Next by Date: Re: Did GarageBand stop playing?
  • Previous by thread: AULab & Garageband
  • Next by thread: Re: afinfo / ExtAudioFile relies on file extensions?
  • Index(es):
    • Date
    • Thread