]> git.tdb.fi Git - libs/al.git/blobdiff - source/soundscape.h
Add gain to SoundScape
[libs/al.git] / source / soundscape.h
index 1d8a9c7a798acc052196f442c87682091e11832d..a703c992a79fb030f6848909c6dc71dc83cd9619 100644 (file)
@@ -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<Source *> 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();
 };