Web Audio API
The pan property of the StereoPannerNode interface is an a-rate AudioParam representing the amount of panning to apply. The value can range between -1 (full left pan) and 1 (full right pan).
Value
An a-rate AudioParam containing the panning to apply.
[!NOTE] Though the
AudioParamreturned is read-only, the value it represents is not.
Examples
See BaseAudioContext.createStereoPanner() for example code.
Specifications
Browser compatibility
See also
来源:MDN Web Docs / Mozilla 贡献者 · 作者与贡献记录 · CC BY-SA 2.5。离线整理了版式、链接和媒体显示。
