AudioListener

The AudioListener interface represents the position and orientation of the unique person listening to the audio scene, and is used in audio spatialization.

MDN Reference

Properties

Link copied to clipboard

The forwardX read-only property of the AudioListener interface is an AudioParam representing the x value of the direction vector defining the forward direction the listener is pointing in.

Link copied to clipboard

The forwardY read-only property of the AudioListener interface is an AudioParam representing the y value of the direction vector defining the forward direction the listener is pointing in.

Link copied to clipboard

The forwardZ read-only property of the AudioListener interface is an AudioParam representing the z value of the direction vector defining the forward direction the listener is pointing in.

Link copied to clipboard

The positionX read-only property of the AudioListener interface is an AudioParam representing the x position of the listener in 3D cartesian space.

Link copied to clipboard

The positionY read-only property of the AudioListener interface is an AudioParam representing the y position of the listener in 3D cartesian space.

Link copied to clipboard

The positionZ read-only property of the AudioListener interface is an AudioParam representing the z position of the listener in 3D cartesian space.

Link copied to clipboard

The upX read-only property of the AudioListener interface is an AudioParam representing the x value of the direction vector defining the up direction the listener is pointing in.

Link copied to clipboard

The upY read-only property of the AudioListener interface is an AudioParam representing the y value of the direction vector defining the up direction the listener is pointing in.

Link copied to clipboard

The upZ read-only property of the AudioListener interface is an AudioParam representing the z value of the direction vector defining the up direction the listener is pointing in.