Marius Sundbakken wrote:
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 don't consider madplay really to be an example, at least not a simple one, precisely because it is so complex. It's a full-featured command-line decoder and player. However, I think minimad ought to be quite a bit easier to wrap your head around, and it uses exactly the same high-level MAD API that madplay does.
I wondered if anybody has written a fairly decoupled C++ wrapper class. It doesn't have to be quite:
MP3File m("my_song.mp3"); m.play();
but at least closer to that than to the 2000+ line example included.
I don't think I've seen anything like this yet, but it sounds like it might be useful.