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; }