Listener
is an AL context-specific monostate object
representing the listener.
#include
<oalplus/listener.hpp>
struct ListenerOrientation { ListenerOrientation(const Vec3f& at, const Vec3f& up) noexcept; Vec3f At(void) const noexcept; Vec3f Up(void) const noexcept; };
class Listener { public: static void Position(const Vec3f& position);static void Position(ALfloat x, ALfloat y, ALfloat z); static Vec3f Position(void);
static void Velocity(const Vec3f& velocity);
static void Velocity(ALfloat x, ALfloat y, ALfloat z); static Vec3f Velocity(void);
static void Orientation(const ListenerOrientation& orientation);
static void Orientation(const Vec3f& at, const Vec3f& up); static void Orientation( ALfloat at_x, ALfloat at_y, ALfloat at_z, ALfloat up_x, ALfloat up_y, ALfloat up_z ); static ListenerOrientation Orientation(void);
static Vec3f OrientationAt(void); static Vec3f OrientationUp(void); static void Gain(ALfloat value);
static ALfloat Gain(void);
};
Specifies the position of the listener. See |
|
Returns the position of the listener. See |
|
Specifies the velocity of the listener. See |
|
Returns the velocity of the listener. See |
|
Specifies the orientation vectors of the listener. See |
|
Return the orientation vectors of the listener. See |
|
Specifies the value of gain of the listener. See |
|
Returns the current value of gain of the listener. See |