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. |
工作草案 |
| 桌面 | 移动 | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
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 |
完整支持
不支持
AudioParam
defaultValue
maxValue
minValue
value
AnalyserNode
AudioBuffer
AudioBufferSourceNode
AudioContext
AudioContextOptions
AudioDestinationNode
AudioListener
AudioNode
AudioNodeOptions
AudioProcessingEvent
AudioScheduledSourceNode
AudioWorklet
AudioWorkletGlobalScope
AudioWorkletNode
AudioWorkletProcessor
BaseAudioContext
BiquadFilterNode
ChannelMergerNode
ChannelSplitterNode
ConstantSourceNode
ConvolverNode
DelayNode
DynamicsCompressorNode
GainNode
IIRFilterNode
MediaElementAudioSourceNode
MediaStreamAudioDestinationNode
MediaStreamAudioSourceNode
OfflineAudioCompletionEvent
OfflineAudioContext
OscillatorNode
PannerNode
PeriodicWave
StereoPannerNode
WaveShaperNode