1 #![allow(unused_imports)]
2 use super::*;
3 use wasm_bindgen::prelude::*;
4 #[wasm_bindgen]
5 extern "C" {
6     # [wasm_bindgen (extends = AudioNode , extends = EventTarget , extends = :: js_sys :: Object , js_name = ConvolverNode , typescript_type = "ConvolverNode")]
7     #[derive(Debug, Clone, PartialEq, Eq)]
8     #[doc = "The `ConvolverNode` class."]
9     #[doc = ""]
10     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ConvolverNode)"]
11     #[doc = ""]
12     #[doc = "*This API requires the following crate features to be activated: `ConvolverNode`*"]
13     pub type ConvolverNode;
14     #[cfg(feature = "AudioBuffer")]
15     # [wasm_bindgen (structural , method , getter , js_class = "ConvolverNode" , js_name = buffer)]
16     #[doc = "Getter for the `buffer` field of this object."]
17     #[doc = ""]
18     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ConvolverNode/buffer)"]
19     #[doc = ""]
20     #[doc = "*This API requires the following crate features to be activated: `AudioBuffer`, `ConvolverNode`*"]
buffer(this: &ConvolverNode) -> Option<AudioBuffer>21     pub fn buffer(this: &ConvolverNode) -> Option<AudioBuffer>;
22     #[cfg(feature = "AudioBuffer")]
23     # [wasm_bindgen (structural , method , setter , js_class = "ConvolverNode" , js_name = buffer)]
24     #[doc = "Setter for the `buffer` field of this object."]
25     #[doc = ""]
26     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ConvolverNode/buffer)"]
27     #[doc = ""]
28     #[doc = "*This API requires the following crate features to be activated: `AudioBuffer`, `ConvolverNode`*"]
set_buffer(this: &ConvolverNode, value: Option<&AudioBuffer>)29     pub fn set_buffer(this: &ConvolverNode, value: Option<&AudioBuffer>);
30     # [wasm_bindgen (structural , method , getter , js_class = "ConvolverNode" , js_name = normalize)]
31     #[doc = "Getter for the `normalize` field of this object."]
32     #[doc = ""]
33     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ConvolverNode/normalize)"]
34     #[doc = ""]
35     #[doc = "*This API requires the following crate features to be activated: `ConvolverNode`*"]
normalize(this: &ConvolverNode) -> bool36     pub fn normalize(this: &ConvolverNode) -> bool;
37     # [wasm_bindgen (structural , method , setter , js_class = "ConvolverNode" , js_name = normalize)]
38     #[doc = "Setter for the `normalize` field of this object."]
39     #[doc = ""]
40     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ConvolverNode/normalize)"]
41     #[doc = ""]
42     #[doc = "*This API requires the following crate features to be activated: `ConvolverNode`*"]
set_normalize(this: &ConvolverNode, value: bool)43     pub fn set_normalize(this: &ConvolverNode, value: bool);
44     #[cfg(feature = "BaseAudioContext")]
45     #[wasm_bindgen(catch, constructor, js_class = "ConvolverNode")]
46     #[doc = "The `new ConvolverNode(..)` constructor, creating a new instance of `ConvolverNode`."]
47     #[doc = ""]
48     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ConvolverNode/ConvolverNode)"]
49     #[doc = ""]
50     #[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`, `ConvolverNode`*"]
new(context: &BaseAudioContext) -> Result<ConvolverNode, JsValue>51     pub fn new(context: &BaseAudioContext) -> Result<ConvolverNode, JsValue>;
52     #[cfg(all(feature = "BaseAudioContext", feature = "ConvolverOptions",))]
53     #[wasm_bindgen(catch, constructor, js_class = "ConvolverNode")]
54     #[doc = "The `new ConvolverNode(..)` constructor, creating a new instance of `ConvolverNode`."]
55     #[doc = ""]
56     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ConvolverNode/ConvolverNode)"]
57     #[doc = ""]
58     #[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`, `ConvolverNode`, `ConvolverOptions`*"]
new_with_options( context: &BaseAudioContext, options: &ConvolverOptions, ) -> Result<ConvolverNode, JsValue>59     pub fn new_with_options(
60         context: &BaseAudioContext,
61         options: &ConvolverOptions,
62     ) -> Result<ConvolverNode, JsValue>;
63 }
64