1 #ifndef MSP_AL_SOUND_H_
2 #define MSP_AL_SOUND_H_
5 #include <vorbis/vorbisfile.h>
6 #include <msp/io/seekable.h>
13 This class facilitates loading sound files. Currently only Ogg Vorbis is
19 OggVorbis_File ovfile;
30 void open_file(const std::string &);
31 void open_io(IO::Seekable &);
37 unsigned read(char *, unsigned);
38 bool eof() const { return eof_flag; }
40 Format get_format() const { return format; }
41 unsigned get_frequency() const { return freq; }
42 unsigned get_size() const { return size; }