6 Listener &Listener::instance()
8 static Listener listener;
12 void Listener::attribute(ALenum attr, float v)
17 void Listener::attribute(ALenum attr, float v0, float v1, float v2)
19 alListener3f(attr, v0, v1, v2);
22 void Listener::attribute(ALenum attr, const float *v)
24 alListenerfv(attr, v);
27 void Listener::set_position(float x, float y, float z)
29 attribute(AL_POSITION, x, y, z);
32 void Listener::set_gain(float g)
34 attribute(AL_GAIN, g);