16 Listener &Listener::instance()
18 static Listener listener;
22 void Listener::set_position(float x, float y, float z)
24 alListener3f(AL_POSITION, x, y, z);
27 void Listener::set_forward_direction(float x, float y, float z)
32 alListenerfv(AL_ORIENTATION, orientation);
35 void Listener::set_up_direction(float x, float y, float z)
40 alListenerfv(AL_ORIENTATION, orientation);
43 void Listener::set_velocity(float x, float y, float z)
45 alListener3f(AL_VELOCITY, x, y, z);
48 void Listener::set_gain(float g)
50 alListenerf(AL_GAIN, g);