maxDistance property of the
PannerNode interface is a double value representing the maximum distance between the audio source and the listener, after which the volume is not reduced any further. This value is used only by the
linear distance model.
maxDistance property's default value is
var audioCtx = new AudioContext(); var panner = audioCtx.createPanner(); panner.maxDistance = 10000;
A double. The default is
10000, and non-positive values are not allowed.
The property has been given a value that is outside the accepted range.
BaseAudioContext.createPanner() for example code.
|Web Audio API |
BCD tables only load in the browser