OggFile(Gosu::Reader reader) : reader_(buffer_.frontReader()) { buffer_.resize(reader.resource().size() - reader.position()); reader.read(buffer_.data(), buffer_.size()); setup(); }
void rewind() { teardown(); reader_ = buffer_.frontReader(); setup(); }