]> git.tdb.fi Git - libs/al.git/blob - source/listener.h
98e16388236c01e3e5a43138e465b8e0fe150b94
[libs/al.git] / source / listener.h
1 #ifndef MSP_AL_LIStENER_H_
2 #define MSP_AL_LISTENER_H_
3
4 #include <AL/al.h>
5
6 namespace Msp {
7 namespace AL {
8
9 /**
10 Represents the listener in the 3D environment.  This class is a singleton.
11 */
12 class Listener
13 {
14 private:
15         Listener() { }
16 public:
17         static Listener &instance();
18
19         void attribute(ALenum, float);
20         void attribute(ALenum, float, float, float);
21         void attribute(ALenum, const float *);
22         void set_position(float, float, float);
23         void set_gain(float);
24 };
25
26 } // namespace AL
27 } // namespace Msp
28
29 #endif