Hi.
I was looking through the MAD examples (minimad and madplay) in order for me to integrate MAD into Apollo. It became apparent pretty quickly that this is no easy task, with just one of the files for the madplay example touching 2000 lines of compact, fairly complex code. That combined with no documentation easily destroyed most of my motivation.
I wondered if anybody has written a fairly decoupled C++ wrapper class. It doesn't have to be quite:
A C++ wrapper (GPL) can be found in GMSP:
www.tfh-berlin.de/~s712059/gsmp/index.html
(file GSMP/[src,include]/MADHelper.[hh,cc] )
MP3File m("my_song.mp3"); m.play();
OK. With this wrapper it isn't that easy! ;-) - But you have a open/read/seek/ close style interface to read and seek in the MP3 file ...
but at least closer to that than to the 2000+ line example included.
Yes closer to that 2000+ lines.
Two draw-backs:
1. It is still in development and sometimes outputs a) -1152 samples before the pos you requested b) other unmatching data (fixed in some hours / days) 2. First seeking is a bit slow because: we need sample accurate seek in GSMP -> And so we can not use the pi * thumb "guessing" found in normal player only software.
- Marius Sundbakken Apollo Developer: http://www.apolloplayer.org
k33p h4ck1n6 René