• 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: Converting to mp3 in iPhone sdk
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Converting to mp3 in iPhone sdk


  • Subject: Re: Converting to mp3 in iPhone sdk
  • From: Jens Alfke <email@hidden>
  • Date: Mon, 16 Feb 2009 11:33:34 -0800


On Feb 16, 2009, at 10:12 AM, mm w wrote:

/Developer/Examples/CoreAudio/Services/AudioFileTools
I think you have to change some stuff to be able to compile it for the iPhone

It doesn't matter, because you can't use this API to encode in MP3 format.


The only feasible API that I know of, unless you want to pay a lot of licensing fees, is LAME <http://lame.sourceforge.net/>. It's pretty simple to use -- you feed it buffers of samples, and it returns you buffers of MP3 data that you write to disk.

The major drawback of LAME for iPhone use is that it's LGPL-licensed. That requires that you license your own app under the LGPL, which means you have to give away the source code. (The desktop workaround of putting LAME into a separate dylib won't work on iPhone.)

I would just go with AAC instead, which you can easily encode into using the ExtAudioFile API. There are examples in /Developer/Examples/ CoreAudio, and I won't insult anyone's intelligence by assuming they don't know how to use tools like the Finder or grep to look it up themselves ;-)

—Jens _______________________________________________
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: 
 >Converting to mp3 in iPhone sdk (From: Santosh Kumar <email@hidden>)
 >Re: Converting to mp3 in iPhone sdk (From: mm w <email@hidden>)
 >Re: Converting to mp3 in iPhone sdk (From: Santosh Kumar <email@hidden>)
 >Re: Converting to mp3 in iPhone sdk (From: mm w <email@hidden>)

  • Prev by Date: Re: Reading packets from an audio file
  • Next by Date: Re: CafOverview
  • Previous by thread: Re: Converting to mp3 in iPhone sdk
  • Next by thread: Re: Converting to mp3 in iPhone sdk
  • Index(es):
    • Date
    • Thread