Web Audio API
The 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.
The maxDistance property's default value is 10000.
Value
A double. The default is 10000, and non-positive values are not allowed.
Exceptions
- RangeError
- : Thrown if the property has been given a value that is outside the accepted range.
Examples
See BaseAudioContext.createPanner() for example code.
Specifications
Browser compatibility
See also
来源:MDN Web Docs / Mozilla 贡献者 · 作者与贡献记录 · CC BY-SA 2.5。离线整理了版式、链接和媒体显示。
