X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fmp3decoder.h;h=01fba634de283196b860d8b2ea4f83db55f71652;hb=1e7141871d33e3e184456ba063fcf3448a8cc12a;hp=06060de0671b0fbf872df4a8d2cda1f339ac0e90;hpb=0e266d73f9aab89410c736e969eaa51ef914acf1;p=libs%2Fal.git diff --git a/source/mp3decoder.h b/source/mp3decoder.h index 06060de..01fba63 100644 --- a/source/mp3decoder.h +++ b/source/mp3decoder.h @@ -18,6 +18,10 @@ private: }; +/** +Decoder for MPEG-2 audio files, a.k.a. MP2 and MP3 files. Normally you should +use one of the SoundDecoder::open_* functions to create a decoder. +*/ class Mp3Decoder: public SoundDecoder { private: @@ -35,12 +39,13 @@ public: static bool detect(const std::string &); - virtual void rewind(); + virtual void seek(unsigned); virtual unsigned read(char *, unsigned); private: bool fill_input(); - bool decode_frame(); + bool try_decode(bool); + bool decode(bool); }; } // namespace AL