]> git.tdb.fi Git - libs/al.git/blobdiff - source/oggdecoder.h
Make SoundDecoder a base class and split off Ogg decoding
[libs/al.git] / source / oggdecoder.h
diff --git a/source/oggdecoder.h b/source/oggdecoder.h
new file mode 100644 (file)
index 0000000..a3f5504
--- /dev/null
@@ -0,0 +1,27 @@
+#ifndef MSP_AL_OGGDECODER_H_
+#define MSP_AL_OGGDECODER_H_
+
+#include "sounddecoder.h"
+
+namespace Msp {
+namespace AL {
+
+class OggDecoder: public SoundDecoder
+{
+private:
+       struct Private;
+
+       Private *priv;
+
+public:
+       OggDecoder(IO::Seekable &);
+       ~OggDecoder();
+
+       virtual void rewind();
+       virtual unsigned read(char *, unsigned);
+};
+
+} // namespace AL
+} // namespace Msp
+
+#endif