Take the 2-minute tour ×

I'm looking for how to play back audio streams in these formats:

  • MP3
  • Ogg / Vorbis
  • WMA over MMS/ASF
  • AAC / AAC+

target is the mac and iPhone. Maybe there is an open source library that I could look at, to understand how it works, and then port it to the cocoa frameworks somehow.

share|improve this question
add comment

4 Answers

up vote 1 down vote accepted

I'd take a look at FFmpeg. It's the most widely used opensource codec library and can be compiled for the iPhone. It has RTSP support (Microsoft deprecated MMS streams in 2003 and most current mms:// streams are actually just RTSP.

You don't actually need to port C/C++ libraries to Cocoa to be able to use them with Cocoa/Objective-C. You can use C libraries directly and C++ ones with Objective-C++ or using a C wrapper.

Or are you worrying about the license? Many parts of FFmpeg are LGPL and can be used from proprietary applications.

share|improve this answer
add comment

I'm not sure about iPhone, but gstreamer is pretty portable.

share|improve this answer
add comment

Have you looked at OpenAL or Ogg? I haven't used either personally but it's a good starting point.

share|improve this answer
OpenAL is not a format; it is an API for 3D audio. –  Nick Toumpelis Mar 4 '10 at 14:37
who said it was? –  wheaties Mar 4 '10 at 21:27
add comment

TuneIn Radio uses code from FFmpeg and LibMMS, both licensed under the LGPLv2.1. Source code, including modifications, for both libraries can be downloaded here http://tunein.com/mobile/ios/tunein_radio_source.zip

share|improve this answer
add comment

Your Answer


