void set_listener(float *pos,float *vel,float *Y,float *Z)
Parameter | Type | Description |
---|---|---|
pos | float * | the listener position (pointer to 3 floats) |
vel | float * | the listener velocity (pointer to 3 floats) |
Y | float * | the listener up vector (pointer to 3 floats) |
Z | float * | the listener front vector (pointer to 3 floats) |
None
Sets current sound listener attributes. All playing sounds will be relative to the listener position, velocity and rotation. If vel is (0,0,0), no Doppler effect is used.