]> git.tdb.fi Git - libs/al.git/blob - source/soundscape.h
Use Msp::IO in SoundDecoder
[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         std::list<Source *> sources;
19
20 public:
21         ~SoundScape();
22
23         void add_source(Source &);
24         Source &play(const Buffer &, float, float, float);
25         void tick();
26 };
27
28 } // namespace AL
29 } // namespace Msp
30
31 #endif