]> git.tdb.fi Git - libs/al.git/blobdiff - source/listener.h
Fix compilation on OS X
[libs/al.git] / source / listener.h
index 98e16388236c01e3e5a43138e465b8e0fe150b94..ae222ae7bf7e5233ab8a06140dbe3a1f398807a1 100644 (file)
@@ -1,7 +1,7 @@
-#ifndef MSP_AL_LIStENER_H_
+#ifndef MSP_AL_LISTENER_H_
 #define MSP_AL_LISTENER_H_
 
-#include <AL/al.h>
+#include "al.h"
 
 namespace Msp {
 namespace AL {
@@ -12,14 +12,16 @@ Represents the listener in the 3D environment.  This class is a singleton.
 class Listener
 {
 private:
-       Listener() { }
+       float orientation[6];
+
+       Listener();
 public:
        static Listener &instance();
 
-       void attribute(ALenum, float);
-       void attribute(ALenum, float, float, float);
-       void attribute(ALenum, const float *);
        void set_position(float, float, float);
+       void set_forward_direction(float, float, float);
+       void set_up_direction(float, float, float);
+       void set_velocity(float, float, float);
        void set_gain(float);
 };