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>
21 OggVorbis_File ovfile;
33 void open_file(const std::string &);
34 void open_memory(const void *, unsigned);
36 void load_file(const std::string &);
37 void load_memory(const void *, unsigned);
40 unsigned read(char *, unsigned);
41 bool eof() const { return eof_flag; }
43 Format get_format() const { return format; }
44 unsigned get_frequency() const { return freq; }
45 unsigned get_size() const { return size; }
46 const char *get_data() const;