X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Flistener.h;h=0876815ce6ecaec3b8e52bac158786a6bf63a4b3;hb=2964e0cbc2fd4d6b838cc5f0598db1318fb4c529;hp=572517010cb179a7b4a115f0ec1c82159caa6c2d;hpb=35ea5cc8d1eb8c806885d27441548f630e7b1266;p=libs%2Fal.git diff --git a/source/listener.h b/source/listener.h index 5725170..0876815 100644 --- a/source/listener.h +++ b/source/listener.h @@ -1,10 +1,3 @@ -/* $Id$ - -This file is part of libmspal -Copyright © 2008 Mikko Rasa, Mikkosoft Productions -Diestributed under the LGPL -*/ - #ifndef MSP_AL_LIStENER_H_ #define MSP_AL_LISTENER_H_ @@ -13,16 +6,23 @@ Diestributed under the LGPL namespace Msp { namespace AL { +/** +Represents the listener in the 3D environment. This class is a singleton. +*/ class Listener { private: + float orientation[6]; + Listener(); public: - static void attribute(ALenum, float); - static void attribute(ALenum, float, float, float); - static void attribute(ALenum, const float *); - static void set_position(float, float, float); - static void set_gain(float); + static Listener &instance(); + + 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); }; } // namespace AL