Objects Reference

directX::set_listener

Prototype

void set_listener(float *pos,float *vel,float *Y,float *Z)

Parameters

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)

Return Value

None

Remarks

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.