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