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. |
工作草案 |
| 桌面 | 移动 | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
reduction
|
Chrome
14
注意事项
|
Edge 12 | Firefox 25 | IE 不支持 No | Opera 15 | Safari 6 |
WebView Android
Yes
注意事项
|
Chrome Android
18
注意事项
|
Firefox Android 26 | Opera Android 14 | Safari iOS Yes |
Samsung Internet Android
1.0
注意事项
|
完整支持
不支持
见实现注意事项。
DynamicsCompressorNode
AnalyserNode
AudioBuffer
AudioBufferSourceNode
AudioContext
AudioContextOptions
AudioDestinationNode
AudioListener
AudioNode
AudioNodeOptions
AudioParam
AudioProcessingEvent
AudioScheduledSourceNode
AudioWorklet
AudioWorkletGlobalScope
AudioWorkletNode
AudioWorkletProcessor
BaseAudioContext
BiquadFilterNode
ChannelMergerNode
ChannelSplitterNode
ConstantSourceNode
ConvolverNode
DelayNode
GainNode
IIRFilterNode
MediaElementAudioSourceNode
MediaStreamAudioDestinationNode
MediaStreamAudioSourceNode
OfflineAudioCompletionEvent
OfflineAudioContext
OscillatorNode
PannerNode
PeriodicWave
StereoPannerNode
WaveShaperNode