X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=sidebyside;f=source%2Fstreamer.h;h=192ede9d68ebc1a8d245b1a559a727c052b91f38;hb=6cc0f1735a00e8f9eb80ff0c9468fb67205f6d20;hp=7843e9e8a0497e265bda373c55a557e99fa2f4a0;hpb=17948408eafd48ea529acd0a70cc45fc5973cb10;p=libs%2Fal.git diff --git a/source/streamer.h b/source/streamer.h index 7843e9e..192ede9 100644 --- a/source/streamer.h +++ b/source/streamer.h @@ -7,26 +7,26 @@ namespace Msp { namespace AL { -class Sound; +class SoundDecoder; class Buffer; /** -A streamer transfers data from a Sound to a Source. It is permanently attached -to the same Source, but can play multiple Sounds during its lifetime. A single -Sound can only be played by one Streamer at a time. +A streamer transfers data from a SoundDecoder to a Source. It is permanently +attached to the same Source, but can read from multiple decoders during its +lifetime. */ class Streamer { private: Source &src; - Sound *snd; + SoundDecoder *decoder; std::list buffers; public: Streamer(Source &); ~Streamer(); - void play(Sound &); + void play(SoundDecoder &); void stop(); void tick(); };