dungeon_crawler
diff prototype/src/audio/ovstream.h @ 55:4c427e28ca00
music playback bugfixing
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Wed, 19 Sep 2012 08:19:10 +0300 |
parents | 1ea56011c1ff |
children |
line diff
1.1 --- a/prototype/src/audio/ovstream.h Wed Sep 19 05:22:43 2012 +0300 1.2 +++ b/prototype/src/audio/ovstream.h Wed Sep 19 08:19:10 2012 +0300 1.3 @@ -7,8 +7,11 @@ 1.4 class OggVorbisStream : public AudioStream { 1.5 private: 1.6 OggVorbis_File vf; 1.7 + bool vfopen; 1.8 1.9 - virtual bool more_samples(); 1.10 + std::mutex vflock; 1.11 + 1.12 + virtual bool more_samples(AudioStreamBuffer *buf); 1.13 1.14 public: 1.15 OggVorbisStream(); 1.16 @@ -16,6 +19,8 @@ 1.17 1.18 bool open(const char *fname); 1.19 void close(); 1.20 + 1.21 + virtual void rewind(); 1.22 }; 1.23 1.24 #endif // OVSTREAM_H_