AudioListener

open class AudioListener(source)

The AudioListener interface represents the position and orientation of the unique person listening to the audio scene, and is used in audio spatialization. All PannerNodes spatialize in relation to the AudioListener stored in the BaseAudioContext.listener attribute.

MDN Reference

Properties

Link copied to clipboard
external val forwardX: AudioParam

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
external val forwardY: AudioParam

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
external val forwardZ: AudioParam

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
external val positionX: AudioParam

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
external val positionY: AudioParam

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
external val positionZ: AudioParam

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
external val upX: AudioParam

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
external val upY: AudioParam

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
external val upZ: AudioParam

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.