nuclear@0: #ifndef OVSTREAM_H_ nuclear@0: #define OVSTREAM_H_ nuclear@0: nuclear@0: #include nuclear@0: #include nuclear@0: #include "stream.h" nuclear@0: nuclear@0: class OggVorbisStream : public AudioStream { nuclear@0: private: nuclear@0: OggVorbis_File vf; nuclear@0: bool vfopen; nuclear@0: pthread_mutex_t vflock; nuclear@0: nuclear@0: virtual bool more_samples(AudioStreamBuffer *buf); nuclear@0: nuclear@0: public: nuclear@0: OggVorbisStream(); nuclear@0: virtual ~OggVorbisStream(); nuclear@0: nuclear@0: bool open(const char *fname); nuclear@0: void close(); nuclear@0: nuclear@0: virtual void play(AUDIO_PLAYMODE mode); nuclear@0: virtual void rewind(); nuclear@0: }; nuclear@0: nuclear@0: #endif // OVSTREAM_H_