API reference
Preparing search index…

Listener

Functions

getCone

Return a copy of the listener's directional cone parameters.

getDirection

Return a copy of the listener's facing direction.

getGlobalVolume

Return the global volume percentage.

getPosition

Return a copy of the listener's 3D position.

getUpVector

Return a copy of the listener's up direction.

getVelocity

Return a copy of the listener's velocity.

setCone

Copy directional cone parameters and update the native listener.

setDirection

Set the listener's forward direction.

setGlobalVolume

Set the global volume percentage for all sources; 0 is silent and 100 is the original volume.

setPosition

Set the listener's position in world coordinates.

setUpVector

Set the listener's up direction, which defines orientation together with the forward direction.

setVelocity

Set the listener's velocity for the Doppler effect, in position units/second.

References

Cone → Cone

Icons made by Lorc, Delapouite & Skoll · game-icons.net · CC BY 3.0