PannerNode: panningModel 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 panningModel
property of the PannerNode
interface is an enumerated value determining which spatialization algorithm to use to position the audio in 3D space.
The possible values are:
equalpower
: Represents the equal-power panning algorithm, generally regarded as simple and efficient.equalpower
is the default value.HRTF
: Renders a stereo output of higher quality thanequalpower
— it uses a convolution with measured impulse responses from human subjects.
Value
An enum — see PanningModelType
.
Examples
See BaseAudioContext.createPanner()
for example code.
Specifications
Specification |
---|
Web Audio API # dom-pannernode-panningmodel |
Browser compatibility
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
panningModel |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
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.