GO-Ve01
ServicesDevelopersBooksDictionaryPapersWikidataEncyclopediaSearchBabelCareersDeck

AudioListener: forwardZ property

Web Audio API

Web Audio API

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.

## Value

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

## Examples

See [`BaseAudioContext.createPanner()`](/docs/Web/API/BaseAudioContext/createPanner#examples) for example code.

## Specifications

## Browser compatibility

## See also

- [Using the Web Audio API](/docs/Web/API/Web_Audio_API/Using_Web_Audio_API)

source: MDN Web Docs mirror · page

Cite this

"AudioListener: forwardZ property". MDN Web Docs. CC BY-SA 2.5 (MDN). https://developer.mozilla.org/en-US/docs/Web/API/AudioListener/forwardZ

JSON record · API collection · BibTeX · RIS · CSL-JSON · citation policy

Save to pass ·