AudioListener: upX property

Baseline Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since April 2021.

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.

Note: The parameter is a-rate when used with a PannerNode whose PannerNode is set to equalpower, or k-rate otherwise.

Value

An AudioParam. Its default value is 0, and it can range between positive and negative infinity.

Examples

For more detailed example code see BaseAudioContext.createPanner().

Specifications

Specification
Web Audio API
# dom-audiolistener-upx

Browser compatibility

BCD tables only load in the browser

See also