dungeon_crawler
view prototype/src/audio/ovstream.h @ 69:45172d087ebe
fixed some windows compatibility crap
fixed a terrible stack overrun in psys (TODO: remember to fix in libpsys too)
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Sun, 07 Oct 2012 03:42:44 +0200 |
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_