]> git.tdb.fi Git - libs/al.git/blob - source/listener.h
Fix compilation on OS X
[libs/al.git] / source / listener.h
1 #ifndef MSP_AL_LISTENER_H_
2 #define MSP_AL_LISTENER_H_
3
4 #include "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         float orientation[6];
16
17         Listener();
18 public:
19         static Listener &instance();
20
21         void set_position(float, float, float);
22         void set_forward_direction(float, float, float);
23         void set_up_direction(float, float, float);
24         void set_velocity(float, float, float);
25         void set_gain(float);
26 };
27
28 } // namespace AL
29 } // namespace Msp
30
31 #endif