PannerNode: maxDistance プロパティ
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.
maxDistance
は PannerNode
インターフェイスのプロパティで、インターフェイスは音声ソースとリスナーの間の最大距離を表す倍精度浮動小数点値です。それ以上音量を縮小しないようにします。この値は linear
距離モデルでのみ使用します。
maxDistance
プロパティの既定値は 10000
です。
値
倍精度浮動小数点値です。既定値は 10000
であり、正ではない値は許可されません。
例外
RangeError
-
プロパティに受け入れられる範囲外の値が指定された場合に発生します。
例
例のコードのについては BaseAudioContext.createPanner()
を参照してください。
仕様書
Specification |
---|
Web Audio API # dom-pannernode-maxdistance |
ブラウザーの互換性
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
maxDistance |
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.