3 This file is part of libmspal
4 Copyright © 2008 Mikko Rasa, Mikkosoft Productions
5 Distributed under the LGPL
8 #ifndef MSP_AL_SOUND_H_
9 #define MSP_AL_SOUND_H_
12 #include <vorbis/vorbisfile.h>
19 This class facilitates loading sound files. Currently only Ogg Vorbis is
25 OggVorbis_File ovfile;
37 void open_file(const std::string &);
38 void open_memory(const void *, unsigned);
40 void load_file(const std::string &);
41 void load_memory(const void *, unsigned);
44 unsigned read(char *, unsigned);
45 bool eof() const { return eof_flag; }
47 Format get_format() const { return format; }
48 unsigned get_frequency() const { return freq; }
49 unsigned get_size() const { return size; }
50 const char *get_data() const;