X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fsoundscape.h;h=a703c992a79fb030f6848909c6dc71dc83cd9619;hb=2dc74a59cab851c594e9cb9a0c4f6ece340120a8;hp=1d8a9c7a798acc052196f442c87682091e11832d;hpb=8e69eba7dc53233c169152bdf654f032fcd0629f;p=libs%2Fal.git diff --git a/source/soundscape.h b/source/soundscape.h index 1d8a9c7..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 -Distributed 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(); };