• 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: [CoreAudio] General Question about Conversion
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [CoreAudio] General Question about Conversion


  • Subject: Re: [CoreAudio] General Question about Conversion
  • From: Mark Pauley <email@hidden>
  • Date: Tue, 3 Jan 2006 11:50:35 -0800

I just got done taking a look at this myself.

Take a look at the AudioFile API documentation. You basically use AudioFileOpen with an FSRef to the file you want to open (which you can get through a CFNSURL from an NSString or a CFString). Then you ask for the format description which will give you a reference to an AudioStreamBasicDescription, then you create a new AudioConverter, then use AudioFileReadBytes and convert away.

The AudioToolbox API documentation has some sample code that will enumerate all AudioFormat types you can decode, and with a quick change of one constant it will enumerate all types you can encode as well.


_Mark


On Jan 3, 2006, at 12:59 AM, Alexander von Below wrote:

Hello,

while I am a true believer in RTFM, I am taking the liberty to ask in this list if reading the CoreAudio docs will yield the desired result ;)

What we want to do is to convert as many audio formats as possible (well, mainly mp3, aac and Apple lossless) into canonical PCM. Another requirement is compatibility from 10.2.8 to 10.4 (Universal).

On first sight, it looks like Core Audio could fulfill all of these requirements. However, I was unable to find any MP3, AAC or similar codecs in the filesystem - I might have been looking for the wrong things, though.

So, is CoreAudio what I need? Or should I look for other options?

Another related question is if anyone here knows if it is possible at all to read AAC Protected (iTMS) files. I am aware that this would first and foremost require an agreement with Apple, but if there is the known chance of reaching such an agreement, we would like to try.
If there is not even a remote chance to get such permission for any company, then there is no reason in persuing this. I am a aware of not-quite-so-legal ways of doing this, but that is not an option. If we can not do it with Apple's blessing, then we just won't.


Thanks a lot

Alex
_______________________________________________
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

_______________________________________________ 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: 
 >[CoreAudio] General Question about Conversion (From: Alexander von Below <email@hidden>)

  • Prev by Date: Re: Help; SimplePlayThru problem
  • Next by Date: Re: [CoreAudio] General Question about Conversion
  • Previous by thread: [CoreAudio] General Question about Conversion
  • Next by thread: Re: [CoreAudio] General Question about Conversion
  • Index(es):
    • Date
    • Thread