Help - Search - Members - Calendar
Full Version: please suggest MP3 decoder source code
Hydrogenaudio Forums > Lossy Audio Compression > MP3 > MP3 - Tech
blsof8bc
Hi folks,

I am looking for a free (or reasonably priced) MP3/MP2 decoder for my player application. Can anyone please suggest a place where I could find (preferrably C/C++) source code of such decoder?
It needs to be stable, should have a good decoding quality, should be able to decode all sorts of MP3 and MP2 files (regardless of tagging used, CBR/VBR etc.) and must be able to seek to a specific position within the audio.
Your help/suggestions are much appreciated, thanks, Martin
robert
http://www.underbit.com/products/mad/
blsof8bc
Thanks for the MAD suggestion. Are you sure it supports seeking within the file?
blsof8bc
Rob, this looks good but perhaps a bit too complicated, sorry wacko.gif
Isn't there a seeking source code for MAD available somewhere? Thanks!
MoSPDude
An example of seeking can be found within the Winamp MAD plug-in source code, found here at http://www.hydrogenaudio.org/forums/index....showtopic=46824 , specifically within "playback.c".
It is a bit complicated, basically search to point in the file using whatever means (XING table, VBRI table or simple percentage of file length), then decode frames until 2 consecutively decode successfully - synth the last one, and return to playback normally.
blsof8bc
This indeed looks very good, thanks much for a tip. I still need to look into this in more detail. Thank you again. All the best,

Martin
Canar
I'm not sure if the modified mpglib sources are available in the foobar2000 SDK, but if they aren't, asking Peter for a copy might work. They've been tested quite thoroughly.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.