Determines which algorithm will be used to reduce the volume of an audio source as it moves away from the listener. See below for the available choices. The default is INVERSE_DISTANCE.
Property of apis/webaudio/PannerNodeapis/webaudio/PannerNode
Syntaxvar result = PannerNode.distanceModel;
PannerNode.distanceModel = value;
Return Value
Returns an object of type unsigned shortunsigned short
Uses one of the following constant values:
var audioCtx = new AudioContext();
var panner = audioCtx.createPanner();
panner.distanceModel = 'inverse';
Related specifications
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4