]> git.tdb.fi Git - libs/al.git/blob - source/soundscape.h
Bump version for release
[libs/al.git] / source / soundscape.h
1 /* $Id$
2
3 This file is part of libmspal
4 Copyright © 2008 Mikko Rasa, Mikkosoft Productions
5 Distributed under the LGPL
6 */
7
8 #ifndef MSP_AL_SOUNDSCAPE_H_
9 #define MSP_AL_SOUNDSCAPE_H_
10
11 #include <list>
12
13 namespace Msp {
14 namespace AL {
15
16 class Buffer;
17 class Source;
18
19 /**
20 A SoundScape offers an easy way to play positional sound effects.
21 */
22 class SoundScape
23 {
24 private:
25         std::list<Source *> sources;
26
27 public:
28         ~SoundScape();
29
30         void add_source(Source &);
31         Source &play(const Buffer &, float, float, float);
32         void tick();
33 };
34
35 } // namespace AL
36 } // namespace Msp
37
38 #endif