Sound_Player module

update_listener

procedureSource

Tells the player where the listener is, so sounds with a position can be panned and softened by distance.

Example
update_listener(.{0, 1.7, 0}, .{0, 0, 0, 1});

This one is only checked to compile, not run.

update_listener :: (camera_position: Vector3, camera_orientation: Quaternion)

Tells the player where the listener is, so sounds with a position can be panned and softened by distance.

Parameters

camera_position: Vector3
where the listener is.
camera_orientation: Quaternion
which way the listener faces.
Example
update_listener(.{0, 1.7, 0}, .{0, 0, 0, 1});

This one is only checked to compile, not run.

See also