]> git.tdb.fi Git - libs/al.git/blobdiff - source/mp3decoder.h
Fix sound file signature comparisons
[libs/al.git] / source / mp3decoder.h
index 06060de0671b0fbf872df4a8d2cda1f339ac0e90..01fba634de283196b860d8b2ea4f83db55f71652 100644 (file)
@@ -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