Jump to content
  • Advertisement
Sign in to follow this  
caesar4

mp3 decoder

This topic is 4762 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

i need a completely free mp3 decoder library (already looked at fmod and bass) it is preferable that it be open source, but not necessary as long as its completely free and an api documentation is provided

Share this post


Link to post
Share on other sites
Advertisement
mpglib, part of the mpg123 project is released under the LPGL license (all you have to do is link dynamically to it).

Next is SMPEG, which is also released under the LPGL license. Don't know about the documentation, but you can look into that.

Share this post


Link to post
Share on other sites
sorry, i meant to also include that it should be for Win32, and i would like to be a standalone library, like oggvorbis
and smpeg is kinda dependent on sdl

Share this post


Link to post
Share on other sites
Take a look at this page. From there:
Quote:

MP3PlayLib : - Layer 1/2/3 - C - 166 k

An MPEG audio decoding library written in C. In includes Layer 1/2/3 decoders, with a good separation between them.


Doesn't look like it comes with docs, but hey, looks like it's hard to find something that has everything nowadays [wink]. It comes with sample code, but its commented in another language, I can't tell which one either, so you will have to improvise some. Anyways, best of luck! That page is the largest I've seen for Mp3 libs, so hopefully you should be able to find one there. [smile]

Share this post


Link to post
Share on other sites
Quote:
Original post by Yohumbus
Have you considered OpenAL?


OpenAL does not support MP3 technology without the use of an external decoder [wink]

Share this post


Link to post
Share on other sites
Quote:
Original post by caesar4
i need a completely free mp3 decoder library (already looked at fmod and bass)


To the best of my knowledge there is no such thing as a completely free mp3 decoder library because of patent issues. If you distribute a program with one you may get a letter from the lawyers representing Thomson Consumer Electronics. Then again, i'm not a lawyer, and the issue is probably more complex than how i'm describing it.

Have you considered using Ogg Vorbis? I'm not sure about all the licensing for all of the libraries, but The "Tremor" decoder library is available under a BSD-like free software license (basically you can largely do whatever you want with it).

You can download the development libraries here.

[Edited by - Will F on June 30, 2005 12:29:27 AM]

Share this post


Link to post
Share on other sites
Examine the mp3 file structure.
Stick to regular bitrate mp3's not VariableBitRate(VBR) Mp3's.

Regular mp3's usually have a header at the beginning containing the bitrate of each frame in the mp3. Then you start buffering and playing frames.

I myself have only gotten as far as parsing the header of a regular mp3. I have not gotten as far as playing the data. VBR Mp3's often have headers at the beginning of each frame which can complicate things a bit.

If anyone wish's to provide an article on how to play the sound data, I'll write a library for it.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!