dungeon_crawler

diff prototype/src/audio/stream.h @ 53:1ea56011c1ff

stuff + streaming start
author John Tsiombikas <nuclear@member.fsf.org>
date Wed, 19 Sep 2012 01:08:41 +0300
parents
children 995191474cc0
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/prototype/src/audio/stream.h	Wed Sep 19 01:08:41 2012 +0300
     1.3 @@ -0,0 +1,19 @@
     1.4 +#ifndef AUDIO_STREAM_H_
     1.5 +#define AUDIO_STREAM_H_
     1.6 +
     1.7 +#include <thread>
     1.8 +
     1.9 +class AudioStream {
    1.10 +private:
    1.11 +	std::thread play_thread;
    1.12 +
    1.13 +	virtual bool more_samples() = 0;
    1.14 +
    1.15 +public:
    1.16 +	virtual ~AudioStream();
    1.17 +
    1.18 +	void play();
    1.19 +	void stop();
    1.20 +};
    1.21 +
    1.22 +#endif	// AUDIO_STREAM_H_