dbf-halloween2015
annotate src/audio/ovstream.h @ 4:4316c0c879e9
fixed RUN script for macosx
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Sun, 01 Nov 2015 06:18:18 +0200 |
parents | |
children |
rev | line source |
---|---|
nuclear@0 | 1 #ifndef OVSTREAM_H_ |
nuclear@0 | 2 #define OVSTREAM_H_ |
nuclear@0 | 3 |
nuclear@0 | 4 #include <pthread.h> |
nuclear@0 | 5 #include <vorbis/vorbisfile.h> |
nuclear@0 | 6 #include "stream.h" |
nuclear@0 | 7 |
nuclear@0 | 8 class OggVorbisStream : public AudioStream { |
nuclear@0 | 9 private: |
nuclear@0 | 10 OggVorbis_File vf; |
nuclear@0 | 11 bool vfopen; |
nuclear@0 | 12 pthread_mutex_t vflock; |
nuclear@0 | 13 |
nuclear@0 | 14 virtual bool more_samples(AudioStreamBuffer *buf); |
nuclear@0 | 15 |
nuclear@0 | 16 public: |
nuclear@0 | 17 OggVorbisStream(); |
nuclear@0 | 18 virtual ~OggVorbisStream(); |
nuclear@0 | 19 |
nuclear@0 | 20 bool open(const char *fname); |
nuclear@0 | 21 void close(); |
nuclear@0 | 22 |
nuclear@0 | 23 virtual void play(AUDIO_PLAYMODE mode); |
nuclear@0 | 24 virtual void rewind(); |
nuclear@0 | 25 }; |
nuclear@0 | 26 |
nuclear@0 | 27 #endif // OVSTREAM_H_ |