ConvolverNode() constructor of the Web 音频 API creates a new ConvolverNode 对象实例。

句法

var convolverNode = new ConvolverNode(context, options)
					

参数

Inherits parameters from the AudioNodeOptions dictionary .

context
A reference to an AudioContext .
选项 可选
Options are as follows:
  • audioBuffer : A mono, stereo, or 4-channel AudioBuffer containing the (possibly multichannel) impulse response used by the ConvolverNode to create the reverb effect.
  • disableNormalization : A 布尔 controlling whether the impulse response from the buffer will be scaled by an equal-power normalization, or not . The default is ' false '.

返回值

新的 ConvolverNode 对象实例。

异常

异常 解释
NotSupportedError The referenced AudioBuffer does not have the correct number of channels, or it has a different sample rate to the associated AudioContext .

规范

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

图例

完整支持

完整支持

不支持

不支持

兼容性未知 ?

兼容性未知

元数据

  • 最后修改: