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;
31 Sound(const std::string &);
34 void open(const std::string &);
36 void load(const std::string &);
39 unsigned read(char *, unsigned);
40 bool eof() const { return eof_flag; }
42 Format get_format() const { return format; }
43 unsigned get_frequency() const { return freq; }
44 unsigned get_size() const { return size; }
45 const char *get_data() const;