![]() |
| [[ Home | Forums | 3D Engines Database | Wiki | Articles/Tutorials | Game Dev Jobs | IRC Chat Network | Contact Us ]] |
|
|
#1 |
|
New Member
Join Date: Mar 2006
Posts: 16
|
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. ^_^
|
|
|
|
|
|
#2 |
|
New Member
Join Date: Sep 2004
Location: Finland
Posts: 10
|
fmod is a popular choice. www.fmod.org.
|
|
|
|
|
|
#3 |
|
Valued Member
Join Date: Aug 2004
Location: Norway
Posts: 200
|
For opensource the only one I know is SMPEG, but my guess is that there is alot more of them...
-si |
|
|
|
|
|
#4 | |
|
Senior Member
Join Date: Oct 2005
Location: Waterville, MN
Posts: 424
|
Quote:
FMod source is only supplied with a commercial licence. It isn't totally open source. |
|
|
|
|
|
|
#5 |
|
DevMaster Staff
Join Date: Oct 2004
Location: Seattle, WA
Posts: 3,707
|
___________________________________________
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. |
|
|
|
|
|
#6 |
|
New Member
Join Date: Mar 2006
Posts: 16
|
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. ^_^
|
|
|
|
|
|
#7 |
|
Senior Member
Join Date: Sep 2005
Location: Hamburg / Germany
Posts: 597
|
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) |
|
|
|
|
|
#8 | |
|
New Member
Join Date: Mar 2006
Posts: 16
|
Quote:
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. |
|
|
|
|
|
|
#9 | |
|
Senior Member
Join Date: Sep 2005
Location: Hamburg / Germany
Posts: 597
|
Quote:
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. |
|
|
|
|
|
|
#10 | |
|
New Member
Join Date: Mar 2006
Posts: 16
|
Quote:
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? |
|
|
|
|
|
|
#11 | |
|
DevMaster Staff
Join Date: Oct 2004
Location: Seattle, WA
Posts: 3,707
|
Quote:
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. |
|
|
|
|
|
|
#12 |
|
New Member
Join Date: Mar 2006
Posts: 16
|
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! ^_^
|
|
|
|
|
|
#13 | |
|
Senior Member
Join Date: Sep 2005
Location: Jönköping, Sweden
Posts: 546
|
Quote:
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. |
|
|
|
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|