1 #ifndef MSP_AL_SOUNDDECODER_H_
2 #define MSP_AL_SOUNDDECODER_H_
5 #include <msp/io/seekable.h>
12 This class facilitates loading sound files. Currently only Ogg Vorbis is
27 virtual ~SoundDecoder();
29 static SoundDecoder *open_file(const std::string &);
30 static SoundDecoder *open_io(IO::Seekable &);
32 virtual void rewind() = 0;
33 virtual unsigned read(char *, unsigned) = 0;
34 bool eof() const { return eof_flag; }
36 Format get_format() const { return format; }
37 unsigned get_frequency() const { return freq; }
38 unsigned get_size() const { return size; }