blsof8bc
Oct 12 2006, 21:20
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
blsof8bc
Oct 12 2006, 21:45
Thanks for the MAD suggestion. Are you sure it supports seeking within the file?
blsof8bc
Oct 13 2006, 17:35
Rob, this looks good but perhaps a bit too complicated, sorry
Isn't there a seeking source code for MAD available somewhere? Thanks!
MoSPDude
Oct 13 2006, 18:31
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
Oct 15 2006, 01:02
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
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.