AudioListener: positionX property
The positionX
read-only property of the AudioListener
interface is an AudioParam
representing the x position of the listener in 3D cartesian space.
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
See BaseAudioContext.createPanner()
for example code.
Specifications
Specification |
---|
Web Audio API # dom-audiolistener-positionx |
Browser compatibility
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
positionX |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
- No support
- No support
- See implementation notes.
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.