]> git.tdb.fi Git - libs/al.git/blob - source/soundscape.h
Add gain to SoundScape
[libs/al.git] / source / soundscape.h
1 #ifndef MSP_AL_SOUNDSCAPE_H_
2 #define MSP_AL_SOUNDSCAPE_H_
3
4 #include <list>
5
6 namespace Msp {
7 namespace AL {
8
9 class Buffer;
10 class Source;
11
12 /**
13 A SoundScape offers an easy way to play positional sound effects.
14 */
15 class SoundScape
16 {
17 private:
18         float gain;
19         std::list<Source *> sources;
20
21 public:
22         SoundScape();
23         ~SoundScape();
24
25         void set_gain(float);
26         void add_source(Source &);
27         Source &play(const Buffer &, float, float, float);
28         void tick();
29 };
30
31 } // namespace AL
32 } // namespace Msp
33
34 #endif