views:

479

answers:

2

C\C++ open source Mp3 to PCM convertor?

What do I need

  • Open Source Libs/wrappers for encoding/decoding.
  • Tutorials and blog articles on How to do it, about etc.
+1  A: 

I've used this successfully in projects: http://www.mpg123.de/

EDIT: I can't speak for this one http://www.underbit.com/products/mad/ but it's supposed to be very good... if you can deal with the GPL.

Art Gillespie
I like it - it's small and "Plays Layer 3 in stereo on an AMD-486-120Mhz or (of course) a faster machine." would you mind sharing some simple example of how to translate mp3 to PCM with it?
Blender
They actually have a nice sample program that converts mp3 to wav: http://www.mpg123.de/api/mpg123__to__wav_8c-source.shtml
Art Gillespie
+3  A: 

As Jeffrey mentioned, LAME can do that, but it's not true that you have to run it as an executable, you can build it as a library. You can even use it in commercial software as long as you dynamically link it.

http://lame.sourceforge.net/about.php

There are numerous open-source packages that use LAME which you can use as examples:

http://lame.sourceforge.net/links.php#OpenSource

Tim Sylvester
I like LAME but it is too big for me right now)
Blender