dungeon_crawler

view 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 source
1 #ifndef OVSTREAM_H_
2 #define OVSTREAM_H_
4 #include <vorbis/vorbisfile.h>
5 #include "stream.h"
7 class OggVorbisStream : public AudioStream {
8 private:
9 OggVorbis_File vf;
10 bool vfopen;
12 std::mutex vflock;
14 virtual bool more_samples(AudioStreamBuffer *buf);
16 public:
17 OggVorbisStream();
18 virtual ~OggVorbisStream();
20 bool open(const char *fname);
21 void close();
23 virtual void rewind();
24 };
26 #endif // OVSTREAM_H_