DevMaster.net Forums
[[ Home | Forums | 3D Engines Database | Wiki | Articles/Tutorials | Game Dev Jobs | IRC Chat Network | Contact Us ]]

Go Back   DevMaster.net Forums > Programming & Development > Sound and Music Programming
User Name
Password
Register FAQ Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread Display Modes
Old 03-17-2006, 02:03 AM   #1
Cherish_He
New Member
 
Join Date: Mar 2006
Posts: 16
Default Are there any open source library for mp3 decoding?

I have read some source code for mp3 decoding, but such code is very hard to understand. Are there any open source libraries for mp3 decoding? Thank a lot. ^_^
Cherish_He is offline   Reply With Quote
Old 03-17-2006, 02:10 AM   #2
zdax
New Member
 
Join Date: Sep 2004
Location: Finland
Posts: 10
Default Re: Are there any open source library for mp3 decoding?

fmod is a popular choice. www.fmod.org.
zdax is offline   Reply With Quote
Old 03-17-2006, 10:12 AM   #3
SigKILL
Valued Member
 
Join Date: Aug 2004
Location: Norway
Posts: 200
Default Re: Are there any open source library for mp3 decoding?

For opensource the only one I know is SMPEG, but my guess is that there is alot more of them...

-si
SigKILL is offline   Reply With Quote
Old 03-17-2006, 10:46 AM   #4
SamuraiCrow
Senior Member
 
Join Date: Oct 2005
Location: Waterville, MN
Posts: 424
Default Re: Are there any open source library for mp3 decoding?

Quote:
Originally Posted by zdax
fmod is a popular choice. www.fmod.org.

FMod source is only supplied with a commercial licence. It isn't totally open source.
SamuraiCrow is offline   Reply With Quote
Old 03-17-2006, 11:34 AM   #5
Reedbeta
DevMaster Staff
 
Join Date: Oct 2004
Location: Seattle, WA
Posts: 3,707
Default Re: Are there any open source library for mp3 decoding?

http://www.zinf.org/
___________________________________________
Currently working at Sucker Punch
reedbeta.com - OpenGL demos and other projects
Luabridge - a lightweight, dependency-free C++/Lua binding library.
CD Lite - an unobtrusive, minimal CD player application for Windows.
Reedbeta is offline   Reply With Quote
Old 03-19-2006, 01:30 AM   #6
Cherish_He
New Member
 
Join Date: Mar 2006
Posts: 16
Default Re: Are there any open source library for mp3 decoding?

I just want to decode the mp3 to be PCM format in Windows XP, are there any open source libraries can do this? Thanks a lot. ^_^
Cherish_He is offline   Reply With Quote
Old 03-19-2006, 02:21 AM   #7
Nils Pipenbrinck
Senior Member
 
Nils Pipenbrinck's Avatar
 
Join Date: Sep 2005
Location: Hamburg / Germany
Posts: 597
Default Re: Are there any open source library for mp3 decoding?

mpg123 fits the bill. The lib is under LGPL.

A bit smaller is AMP1.1 from Niklas Beisert (can be found here: http://www.cubic.org/sources.html)
Nils Pipenbrinck is offline   Reply With Quote
Old 03-19-2006, 07:20 AM   #8
Cherish_He
New Member
 
Join Date: Mar 2006
Posts: 16
Default Re: Are there any open source library for mp3 decoding?

Quote:
Originally Posted by Nils Pipenbrinck
mpg123 fits the bill. The lib is under LGPL.

A bit smaller is AMP1.1 from Niklas Beisert (can be found here: http://www.cubic.org/sources.html)

How can I get the lib mpg123? I want a Windows version. I went to the site of mpg123, and can only find a dll for windows, and I can not download this dll because the url link to a page which reports a 404 error.....

Are there any tutorial for the AMP1.1? I've download the souce code, but the sample is too complex to read.... Thanks a lot.
Cherish_He is offline   Reply With Quote
Old 03-19-2006, 10:32 AM   #9
Nils Pipenbrinck
Senior Member
 
Nils Pipenbrinck's Avatar
 
Join Date: Sep 2005
Location: Hamburg / Germany
Posts: 597
Default Re: Are there any open source library for mp3 decoding?

Quote:
Originally Posted by Cherish_He
How can I get the lib mpg123? I want a Windows version. I went to the site of mpg123, and can only find a dll for windows, and I can not download this dll because the url link to a page which reports a 404 error.....

Are there any tutorial for the AMP1.1? I've download the souce code, but the sample is too complex to read.... Thanks a lot.

I'm sure you'll find a mirror somewhere.. I even think mpg123 has a sourceforge site. It's a well known and widely used mp3 player on linux systems, so I'm sure there are hundrets of mirrors.

About AMP, it's not supported and there is little interest in that lib, but I like it just because of the fact, that it does mp3 decoding, nothing else.

It's really easy to use. Have you had a look at the README file? There's a really simple usage example in it. Btw, I'd suggest once you got it running you remove the binfile stuff and implement your own.
Nils Pipenbrinck is offline   Reply With Quote
Old 03-20-2006, 07:17 AM   #10
Cherish_He
New Member
 
Join Date: Mar 2006
Posts: 16
Default Re: Are there any open source library for mp3 decoding?

Quote:
Originally Posted by Nils Pipenbrinck
About AMP, it's not supported and there is little interest in that lib, but I like it just because of the fact, that it does mp3 decoding, nothing else.

It's really easy to use. Have you had a look at the README file? There's a really simple usage example in it. Btw, I'd suggest once you got it running you remove the binfile stuff and implement your own.

But can AMP be complied in Windows? I've download it from the site you gave me, but it does not tell me how to complied in Windows. And when I try to complied it, it said that some code could not be complied in Windows. Is there a Windows version for Windows?
Cherish_He is offline   Reply With Quote
Old 03-20-2006, 12:33 PM   #11
Reedbeta
DevMaster Staff
 
Join Date: Oct 2004
Location: Seattle, WA
Posts: 3,707
Default Re: Are there any open source library for mp3 decoding?

Quote:
Originally Posted by Cherish_He
Is there a Windows version for Windows?

No, but there's a Windows version for Linux.

Sorry, couldn't resist.
___________________________________________
Currently working at Sucker Punch
reedbeta.com - OpenGL demos and other projects
Luabridge - a lightweight, dependency-free C++/Lua binding library.
CD Lite - an unobtrusive, minimal CD player application for Windows.
Reedbeta is offline   Reply With Quote
Old 03-22-2006, 02:37 AM   #12
Cherish_He
New Member
 
Join Date: Mar 2006
Posts: 16
Default Re: Are there any open source library for mp3 decoding?

I've downloaded libmad and complied it to a lib successfully using VC++, but I don't know how to use the lib. There is an example in the package, but this example is for UNIX. Do somebody know how to use libmad to decode mp3 with VC++? Thanks a lot! ^_^
Cherish_He is offline   Reply With Quote
Old 03-26-2006, 01:51 AM   #13
geon
Senior Member
 
geon's Avatar
 
Join Date: Sep 2005
Location: Jönköping, Sweden
Posts: 546
Default Re: Are there any open source library for mp3 decoding?

Quote:
Originally Posted by Cherish_He
but this example is for UNIX.

So?

If it works for UNIX it should work for windows. Actually playing the sound is a different matter, however. I am sure you could easily find some tutorials on how to play sounds in windows.
geon is offline   Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Forum Jump


All times are GMT -7. The time now is 01:11 AM.


Powered by vBulletin
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.