vrshoot

view src/audio/ovstream.h @ 0:b2f14e535253

initial commit
author John Tsiombikas <nuclear@member.fsf.org>
date Sat, 01 Feb 2014 19:58:19 +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_