13 #ifndef OALPLUS_LISTENER_1303201647_HPP
14 #define OALPLUS_LISTENER_1303201647_HPP
19 #include <oalplus/math/vector.hpp>
20 #include <oalplus/error/basic.hpp>
40 OALPLUS_ALFUNC(Listenerfv)(
44 OALPLUS_VERIFY_SIMPLE(Listenerfv);
57 static void Position(ALfloat x, ALfloat y, ALfloat z)
60 OALPLUS_ALFUNC(Listener3f)(
64 OALPLUS_VERIFY_SIMPLE(Listener3f);
79 OALPLUS_ALFUNC(GetListenerfv)(
83 OALPLUS_VERIFY_SIMPLE(GetListenerfv);
99 OALPLUS_ALFUNC(Listenerfv)(
103 OALPLUS_VERIFY_SIMPLE(Listenerfv);
116 static void Velocity(ALfloat x, ALfloat y, ALfloat z)
118 OALPLUS_ALFUNC(Listener3f)(
122 OALPLUS_VERIFY_SIMPLE(Listener3f);
137 OALPLUS_ALFUNC(GetListenerfv)(
141 OALPLUS_VERIFY_SIMPLE(GetListenerfv);
142 return Vec3f(result);
161 OALPLUS_ALFUNC(Listenerfv)(AL_ORIENTATION, v);
162 OALPLUS_VERIFY_SIMPLE(Listenerfv);
186 ALfloat v[6] = {at_x, at_y, at_z, up_x, up_y, up_z};
187 OALPLUS_ALFUNC(Listenerfv)(AL_ORIENTATION, v);
188 OALPLUS_VERIFY_SIMPLE(Listenerfv);
205 OALPLUS_ALFUNC(GetListenerfv)(AL_ORIENTATION, v);
206 OALPLUS_VERIFY_SIMPLE(GetListenerfv);
223 OALPLUS_ALFUNC(GetListenerfv)(AL_ORIENTATION, v);
224 OALPLUS_VERIFY_SIMPLE(GetListenerfv);
225 return Vec3f(v+3, 3);
235 static void Gain(ALfloat value)
237 OALPLUS_ALFUNC(Listenerf)(
241 OALPLUS_VERIFY_SIMPLE(Listenerf);
254 OALPLUS_ALFUNC(GetListenerfv)(
258 OALPLUS_VERIFY_SIMPLE(GetListenerfv);
265 #endif // include guard
static void Velocity(const Vec3f &velocity)
Specifies the velocity vector of the listener.
Definition: listener.hpp:97
static ALfloat Gain(void)
Returns the current value of gain of the listener.
Definition: listener.hpp:251
static void Gain(ALfloat value)
Specifies the value of gain of the listener.
Definition: listener.hpp:235
Vector< GLfloat, 3 > Vec3f
static Vec3f OrientationUp(void)
Returns the orientation up vector of the listener.
Definition: listener.hpp:220
static void Velocity(ALfloat x, ALfloat y, ALfloat z)
Specifies the velocity vector of the listener.
Definition: listener.hpp:116
static void Orientation(const Vec3f &at, const Vec3f &up)
Specifies the orientation vector of the listener.
Definition: listener.hpp:155
static void Position(const Vec3f &position)
Specifies the position of the listener.
Definition: listener.hpp:38
Compile-time configuration options.
Helper macro expanding into OpenAL function name.
static Vec3f Position(void)
Returns the positin of the listener.
Definition: listener.hpp:76
static Vec3f OrientationAt(void)
Returns the orientation vector of the listener.
Definition: listener.hpp:202
An AL context-specific monostate object representing the listener.
Definition: listener.hpp:25
static void Position(ALfloat x, ALfloat y, ALfloat z)
Specifies the position of the listener.
Definition: listener.hpp:57
static void Orientation(ALfloat at_x, ALfloat at_y, ALfloat at_z, ALfloat up_x, ALfloat up_y, ALfloat up_z)
Specifies the orientation vector of the listener.
Definition: listener.hpp:177
static Vec3f Velocity(void)
Returns the velocity vector of the listener.
Definition: listener.hpp:134