AnalyserNode constructor of the Web 音频 API creates a new AnalyserNode 对象实例。

句法

var analyserNode = new AnalyserNode(context, ?options);
					

参数

Inherits parameters from the AudioNodeOptions 字典。

context
A reference to an AudioContext or OfflineAudioContext .
选项 可选
  • fftSize : The desired initial size of the FFT for frequency-domain analysis.
    默认为 2048 .
  • maxDecibels : The desired initial maximum power in dB for FFT analysis.
    默认为 -30 .
  • minDecibels : The desired initial minimum power in dB for FFT analysis.
    默认为 -100 .
  • smoothingTimeConstant : The desired initial smoothing constant for the FFT analysis. The default is 0.8 .

返回值

新的 AnalyserNode 对象实例。

规范

规范 状态 注释
Web 音频 API
The definition of 'AnalyserNode() constructor' 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
AnalyserNode() 构造函数 Chrome 55 Edge ≤79 Firefox 53 IE 不支持 No Opera 42 Safari 6 WebView Android 55 Chrome Android 55 Firefox Android 53 Opera Android 42 Safari iOS 6 Samsung Internet Android 6.0

图例

完整支持

完整支持

不支持

不支持

另请参阅

元数据

  • 最后修改: