]> git.tdb.fi Git - libs/al.git/blobdiff - source/sounddecoder.h
Use Msp::IO in SoundDecoder
[libs/al.git] / source / sounddecoder.h
index ad56646b30dc149c9bfe48ef3fb243f3d811121f..c9566592f38870198e84bc8a263cf65d5b177522 100644 (file)
@@ -3,6 +3,7 @@
 
 #include <string>
 #include <vorbis/vorbisfile.h>
+#include <msp/io/seekable.h>
 #include "format.h"
 
 namespace Msp {
@@ -16,6 +17,7 @@ class SoundDecoder
 {
 private:
        OggVorbis_File ovfile;
+       IO::Seekable *source;
        unsigned freq;
        unsigned size;
        Format format;
@@ -26,7 +28,7 @@ public:
        ~SoundDecoder();
 
        void open_file(const std::string &);
-       void open_memory(const void *, unsigned);
+       void open_io(IO::Seekable &);
 private:
        void open_common();
 public: