reduction 只读特性在 DynamicsCompressorNode interface is a float representing the amount of gain reduction currently applied by the compressor to the signal.

Intended for metering purposes, it returns a value in dB, or 0 (no gain reduction) if no signal is fed into the DynamicsCompressorNode . The range of this value is between -20 and 0 (in dB).

句法

var myReduction = compressorNodeInstance.reduction;
					

A float.

范例

var audioCtx = new AudioContext();
var compressor = audioCtx.createDynamicsCompressor();
var myReduction = compressor.reduction;
					

规范

规范 状态 注释
Web 音频 API
The definition of 'reduction' 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
reduction Chrome 14 注意事项
14 注意事项
Before version 52, this was an AudioParam. .
Edge 12 Firefox 25 IE 不支持 No Opera 15 Safari 6 WebView Android Yes 注意事项
Yes 注意事项
Before version 52, this was an AudioParam. .
Chrome Android 18 注意事项
18 注意事项
Before version 52, this was an AudioParam. .
Firefox Android 26 Opera Android 14 Safari iOS Yes Samsung Internet Android 1.0 注意事项
1.0 注意事项
Before Samsung Internet 6.0, this was an AudioParam. .

图例

完整支持

完整支持

不支持

不支持

见实现注意事项。

另请参阅

元数据

  • 最后修改: