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