namespace Msp {
namespace AL {
+class unsupported_sound: public std::runtime_error
+{
+public:
+ unsupported_sound(const std::string &);
+ virtual ~unsupported_sound() throw() { }
+};
+
+
/**
This class facilitates loading sound files. Currently only Ogg Vorbis is
supported.
static SoundDecoder *open_file(const std::string &);
static SoundDecoder *open_io(IO::Seekable &);
- virtual void rewind() = 0;
+ virtual void rewind() { seek(0); }
+ virtual void seek(unsigned) = 0;
virtual unsigned read(char *, unsigned) = 0;
bool eof() const { return eof_flag; }