AudioListener.forwardZ

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.

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

Syntax

var audioCtx = new AudioContext();
var myListener = audioCtx.listener;
myListener.forwardZ.value = 0;

Value

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

Example

See BaseAudioContext.createPanner() for example code.

Specifications

Specification
Web Audio API
# dom-audiolistener-forwardz

Browser compatibility

BCD tables only load in the browser

See also