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 = BiquadFilterNode , typescript_type = "BiquadFilterNode")]
7     #[derive(Debug, Clone, PartialEq, Eq)]
8     #[doc = "The `BiquadFilterNode` class."]
9     #[doc = ""]
10     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BiquadFilterNode)"]
11     #[doc = ""]
12     #[doc = "*This API requires the following crate features to be activated: `BiquadFilterNode`*"]
13     pub type BiquadFilterNode;
14     #[cfg(feature = "BiquadFilterType")]
15     # [wasm_bindgen (structural , method , getter , js_class = "BiquadFilterNode" , js_name = type)]
16     #[doc = "Getter for the `type` field of this object."]
17     #[doc = ""]
18     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BiquadFilterNode/type)"]
19     #[doc = ""]
20     #[doc = "*This API requires the following crate features to be activated: `BiquadFilterNode`, `BiquadFilterType`*"]
type_(this: &BiquadFilterNode) -> BiquadFilterType21     pub fn type_(this: &BiquadFilterNode) -> BiquadFilterType;
22     #[cfg(feature = "BiquadFilterType")]
23     # [wasm_bindgen (structural , method , setter , js_class = "BiquadFilterNode" , js_name = type)]
24     #[doc = "Setter for the `type` field of this object."]
25     #[doc = ""]
26     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BiquadFilterNode/type)"]
27     #[doc = ""]
28     #[doc = "*This API requires the following crate features to be activated: `BiquadFilterNode`, `BiquadFilterType`*"]
set_type(this: &BiquadFilterNode, value: BiquadFilterType)29     pub fn set_type(this: &BiquadFilterNode, value: BiquadFilterType);
30     #[cfg(feature = "AudioParam")]
31     # [wasm_bindgen (structural , method , getter , js_class = "BiquadFilterNode" , js_name = frequency)]
32     #[doc = "Getter for the `frequency` field of this object."]
33     #[doc = ""]
34     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BiquadFilterNode/frequency)"]
35     #[doc = ""]
36     #[doc = "*This API requires the following crate features to be activated: `AudioParam`, `BiquadFilterNode`*"]
frequency(this: &BiquadFilterNode) -> AudioParam37     pub fn frequency(this: &BiquadFilterNode) -> AudioParam;
38     #[cfg(feature = "AudioParam")]
39     # [wasm_bindgen (structural , method , getter , js_class = "BiquadFilterNode" , js_name = detune)]
40     #[doc = "Getter for the `detune` field of this object."]
41     #[doc = ""]
42     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BiquadFilterNode/detune)"]
43     #[doc = ""]
44     #[doc = "*This API requires the following crate features to be activated: `AudioParam`, `BiquadFilterNode`*"]
detune(this: &BiquadFilterNode) -> AudioParam45     pub fn detune(this: &BiquadFilterNode) -> AudioParam;
46     #[cfg(feature = "AudioParam")]
47     # [wasm_bindgen (structural , method , getter , js_class = "BiquadFilterNode" , js_name = Q)]
48     #[doc = "Getter for the `Q` field of this object."]
49     #[doc = ""]
50     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BiquadFilterNode/Q)"]
51     #[doc = ""]
52     #[doc = "*This API requires the following crate features to be activated: `AudioParam`, `BiquadFilterNode`*"]
q(this: &BiquadFilterNode) -> AudioParam53     pub fn q(this: &BiquadFilterNode) -> AudioParam;
54     #[cfg(feature = "AudioParam")]
55     # [wasm_bindgen (structural , method , getter , js_class = "BiquadFilterNode" , js_name = gain)]
56     #[doc = "Getter for the `gain` field of this object."]
57     #[doc = ""]
58     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BiquadFilterNode/gain)"]
59     #[doc = ""]
60     #[doc = "*This API requires the following crate features to be activated: `AudioParam`, `BiquadFilterNode`*"]
gain(this: &BiquadFilterNode) -> AudioParam61     pub fn gain(this: &BiquadFilterNode) -> AudioParam;
62     #[cfg(feature = "BaseAudioContext")]
63     #[wasm_bindgen(catch, constructor, js_class = "BiquadFilterNode")]
64     #[doc = "The `new BiquadFilterNode(..)` constructor, creating a new instance of `BiquadFilterNode`."]
65     #[doc = ""]
66     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BiquadFilterNode/BiquadFilterNode)"]
67     #[doc = ""]
68     #[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`, `BiquadFilterNode`*"]
new(context: &BaseAudioContext) -> Result<BiquadFilterNode, JsValue>69     pub fn new(context: &BaseAudioContext) -> Result<BiquadFilterNode, JsValue>;
70     #[cfg(all(feature = "BaseAudioContext", feature = "BiquadFilterOptions",))]
71     #[wasm_bindgen(catch, constructor, js_class = "BiquadFilterNode")]
72     #[doc = "The `new BiquadFilterNode(..)` constructor, creating a new instance of `BiquadFilterNode`."]
73     #[doc = ""]
74     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BiquadFilterNode/BiquadFilterNode)"]
75     #[doc = ""]
76     #[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`, `BiquadFilterNode`, `BiquadFilterOptions`*"]
new_with_options( context: &BaseAudioContext, options: &BiquadFilterOptions, ) -> Result<BiquadFilterNode, JsValue>77     pub fn new_with_options(
78         context: &BaseAudioContext,
79         options: &BiquadFilterOptions,
80     ) -> Result<BiquadFilterNode, JsValue>;
81     # [wasm_bindgen (method , structural , js_class = "BiquadFilterNode" , js_name = getFrequencyResponse)]
82     #[doc = "The `getFrequencyResponse()` method."]
83     #[doc = ""]
84     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BiquadFilterNode/getFrequencyResponse)"]
85     #[doc = ""]
86     #[doc = "*This API requires the following crate features to be activated: `BiquadFilterNode`*"]
get_frequency_response( this: &BiquadFilterNode, frequency_hz: &mut [f32], mag_response: &mut [f32], phase_response: &mut [f32], )87     pub fn get_frequency_response(
88         this: &BiquadFilterNode,
89         frequency_hz: &mut [f32],
90         mag_response: &mut [f32],
91         phase_response: &mut [f32],
92     );
93 }
94