Hello. I'm looking for a way to encode an mp3 file on the iPhone. I'm writing an app that records an audio clip with the microphone and uploads it to a server. The iPhone SDK has APIs to write out .caf and .aiff, but I didn't find any support for mp3. Since I'm uploading to a server, these uncompressed formats are way too big--hence my interest in mp3.
I took a look at the open source LAME library which is available for Mac OS X. It almost built, but I ran into a link error that baffled me. Does anyone have experience with LAME on OS X? And if so, how hard would it be to adapt it for use on the iPhone?
I just discovered an iPhone app called AudioBoo that records in mp3, so I know it can be done!
Thanks in advance for any leads.
--Ed