我们的志愿者还没有将这篇文章翻译为 中文 (简体)。加入我们帮助完成翻译!
您也可以阅读此文章的English (US)版。
The ConvolverNode interface is an AudioNode that performs a Linear Convolution on a given AudioBuffer, often used to achieve a reverb effect. A ConvolverNode always has exactly one input and one output.
Note: For more information on the theory behind Linear Convolution, see the W3C Web Audio API spec section, Linear Effects Using Convolution, or read the The Wikipedia Linear Convolution Article.
| Number of inputs | 1 |
|---|---|
| Number of outputs | 1 |
| Channel count mode | "clamped-max" |
| Channel count | 2 |
| Channel interpretation | "speakers" |
Properties
Inherits properties from its parent, AudioNode.
ConvolverNode.buffer- A mono, stereo, or 4-channel
AudioBuffercontaining the (possibly multichannel) impulse response used by theConvolverNodeto create the reverb effect. ConvolverNode.normalize- A boolean that controls whether the impulse response from the buffer will be scaled by an equal-power normalization when the
bufferattribute is set, or not.
Methods
No specific method; inherits methods from its parent, AudioNode.
Example
Specifications
| Specification | Status | Comment |
|---|---|---|
| Web Audio API The definition of 'ConvolverNode' in that specification. |
Working Draft |
Browser compatibility
| Feature | Chrome | Edge | Firefox (Gecko) | Internet Explorer | Opera | Safari (WebKit) |
|---|---|---|---|---|---|---|
| Basic support | 10.0webkit | (Yes) | 25.0 (25.0) | No support | 15webkit 22 (unprefixed) |
6.0webkit |
| constructor | 55.0 | ? | ? | ? | 42 | ? |
| Feature | Android | Android Webview | Edge | Firefox Mobile (Gecko) | Firefox OS | IE Mobile | Opera Mobile | Safari Mobile | Chrome for Android |
|---|---|---|---|---|---|---|---|---|---|
| Basic support | No support | (Yes) | (Yes) | 26.0 | 1.2 | ? | (Yes) | ? | 33.0 |
| constructor | No support | 55.0 | ? | ? | ? | ? | 42 | ? | 55.0 |