The AnalyserNode
constructor of the Web Audio API creates a new AnalyserNode
object instance.
Syntax
var analyserNode = new AnalyserNode(context, options)
参数
继承参数自 AudioNodeOptions
字典.
- context
AudioContext
的引用.- options 可选
- Options are as follows:
fftSize
: 用于频域分析的FFT初始尺寸。默认值是2048。maxDecibels
: 用于FFT分析的初始最大功率(dB)。默认值是-30。minDecibels
: 用于FFT分析的初始最小功率(dB)。默认值是-100。smoothingTimeConstant
: 用于FFT分析的初始平滑常数。默认值是0.8。
返回值
A new AnalyserNode
object instance.
Specifications
Specification | Status | Comment |
---|---|---|
Web Audio API AnalyserNode |
Working Draft | Initial definition. |
Browser Compatibility
BCD tables only load in the browser
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.