X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fsoundscape.h;h=a703c992a79fb030f6848909c6dc71dc83cd9619;hb=d675d665b336507a795afaf67d18030b304b793d;hp=3eca7eafcf265fd484f681b9c43a78aa5ad1eb0f;hpb=72a8ee9c7d0ff973b20a27184b0c493d3fd5ae59;p=libs%2Fal.git diff --git a/source/soundscape.h b/source/soundscape.h index 3eca7ea..a703c99 100644 --- a/source/soundscape.h +++ b/source/soundscape.h @@ -1,10 +1,3 @@ -/* $Id$ - -This file is part of libmspal -Copyright © 2008 Mikko Rasa, Mikkosoft Productions -Diestributed under the LGPL -*/ - #ifndef MSP_AL_SOUNDSCAPE_H_ #define MSP_AL_SOUNDSCAPE_H_ @@ -16,16 +9,22 @@ namespace AL { class Buffer; class Source; +/** +A SoundScape offers an easy way to play positional sound effects. +*/ class SoundScape { private: + float gain; std::list sources; public: + SoundScape(); ~SoundScape(); - void add_source(Source *); - Source *play(const Buffer &, float, float, float); + void set_gain(float); + void add_source(Source &); + Source &play(const Buffer &, float, float, float); void tick(); };