dbf-halloween2015

view src/audio/ovstream.h @ 0:50683c78264e

initial commit
author John Tsiombikas <nuclear@member.fsf.org>
date Sun, 01 Nov 2015 00:09:12 +0200
parents
children
line source
1 #ifndef OVSTREAM_H_
2 #define OVSTREAM_H_
4 #include <pthread.h>
5 #include <vorbis/vorbisfile.h>
6 #include "stream.h"
8 class OggVorbisStream : public AudioStream {
9 private:
10 OggVorbis_File vf;
11 bool vfopen;
12 pthread_mutex_t 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 play(AUDIO_PLAYMODE mode);
24 virtual void rewind();
25 };
27 #endif // OVSTREAM_H_