X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fstreamer.h;fp=source%2Fstreamer.h;h=eddd49d7a067011b31561acbdd7abe6e904db892;hb=58dc1e7c15f928d0f861a20c46f2be4112bf5baf;hp=0000000000000000000000000000000000000000;hpb=8e69eba7dc53233c169152bdf654f032fcd0629f;p=libs%2Fal.git diff --git a/source/streamer.h b/source/streamer.h new file mode 100644 index 0000000..eddd49d --- /dev/null +++ b/source/streamer.h @@ -0,0 +1,39 @@ +/* $Id$ + +This file is part of libmspal +Copyright © 2008 Mikko Rasa, Mikkosoft Productions +Distributed under the LGPL +*/ + +#ifndef MSP_AL_STREAMER_H_ +#define MSP_AL_STREAMER_H_ + +#include +#include "source.h" + +namespace Msp { +namespace AL { + +class Sound; +class Buffer; + +class Streamer +{ +private: + Source &src; + Sound *snd; + std::list buffers; + +public: + Streamer(Source &); + ~Streamer(); + + void play(Sound &); + void stop(); + void tick(); +}; + +} // namespace AL +} // namespace Msp + +#endif