maxValue 只读特性在 AudioParam interface represents the maximum possible value for the parameter's nominal (effective) range.

句法

var maxVal = audioParam.maxValue;
					

A floating-point Number indicating the maximum value permitted for the parameter's nominal range.

默认值 maxValue is the maximum positive single-precision floating-point value (+340,282,346,638,528,859,811,704,183,484,516,925,440).

范例

const audioCtx = new AudioContext();
const gainNode = audioCtx.createGain();
console.log(gainNode.gain.maxValue); // 3.4028234663852886e38
					

规范

规范 状态 注释
Web 音频 API
The definition of 'maxValue' in that specification.
工作草案

浏览器兼容性

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. 更新 GitHub 上的兼容性数据
桌面 移动
Chrome Edge Firefox Internet Explorer Opera Safari Android webview Chrome for Android Firefox for Android Opera for Android Safari on iOS Samsung Internet
maxValue Chrome 52 Edge ≤18 Firefox 53 IE No Opera 39 Safari 6 WebView Android 52 Chrome Android 52 Firefox Android 53 Opera Android 41 Safari iOS Yes Samsung Internet Android 6.0

图例

完整支持

完整支持

不支持

不支持

另请参阅

元数据

  • 最后修改: