1 #ifndef MSP_AL_SOUND_H_
2 #define MSP_AL_SOUND_H_
5 #include <vorbis/vorbisfile.h>
12 This class facilitates loading sound files. Currently only Ogg Vorbis is
18 OggVorbis_File ovfile;
30 void open_file(const std::string &);
31 void open_memory(const void *, unsigned);
33 void load_file(const std::string &);
34 void load_memory(const void *, unsigned);
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; }
43 const char *get_data() const;