maxcountryman_web_sys/features/
gen_DynamicsCompressorNode.rs1#![allow(unused_imports)]
2use super::*;
3use wasm_bindgen::prelude::*;
4#[wasm_bindgen]
5extern "C" {
6 # [wasm_bindgen (extends = AudioNode , extends = EventTarget , extends = :: js_sys :: Object , js_name = DynamicsCompressorNode , typescript_type = "DynamicsCompressorNode")]
7 #[derive(Debug, Clone, PartialEq, Eq)]
8 #[doc = "The `DynamicsCompressorNode` class."]
9 #[doc = ""]
10 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DynamicsCompressorNode)"]
11 #[doc = ""]
12 #[doc = "*This API requires the following crate features to be activated: `DynamicsCompressorNode`*"]
13 pub type DynamicsCompressorNode;
14 #[cfg(feature = "AudioParam")]
15 # [wasm_bindgen (structural , method , getter , js_class = "DynamicsCompressorNode" , js_name = threshold)]
16 #[doc = "Getter for the `threshold` field of this object."]
17 #[doc = ""]
18 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DynamicsCompressorNode/threshold)"]
19 #[doc = ""]
20 #[doc = "*This API requires the following crate features to be activated: `AudioParam`, `DynamicsCompressorNode`*"]
21 pub fn threshold(this: &DynamicsCompressorNode) -> AudioParam;
22 #[cfg(feature = "AudioParam")]
23 # [wasm_bindgen (structural , method , getter , js_class = "DynamicsCompressorNode" , js_name = knee)]
24 #[doc = "Getter for the `knee` field of this object."]
25 #[doc = ""]
26 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DynamicsCompressorNode/knee)"]
27 #[doc = ""]
28 #[doc = "*This API requires the following crate features to be activated: `AudioParam`, `DynamicsCompressorNode`*"]
29 pub fn knee(this: &DynamicsCompressorNode) -> AudioParam;
30 #[cfg(feature = "AudioParam")]
31 # [wasm_bindgen (structural , method , getter , js_class = "DynamicsCompressorNode" , js_name = ratio)]
32 #[doc = "Getter for the `ratio` field of this object."]
33 #[doc = ""]
34 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DynamicsCompressorNode/ratio)"]
35 #[doc = ""]
36 #[doc = "*This API requires the following crate features to be activated: `AudioParam`, `DynamicsCompressorNode`*"]
37 pub fn ratio(this: &DynamicsCompressorNode) -> AudioParam;
38 # [wasm_bindgen (structural , method , getter , js_class = "DynamicsCompressorNode" , js_name = reduction)]
39 #[doc = "Getter for the `reduction` field of this object."]
40 #[doc = ""]
41 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DynamicsCompressorNode/reduction)"]
42 #[doc = ""]
43 #[doc = "*This API requires the following crate features to be activated: `DynamicsCompressorNode`*"]
44 pub fn reduction(this: &DynamicsCompressorNode) -> f32;
45 #[cfg(feature = "AudioParam")]
46 # [wasm_bindgen (structural , method , getter , js_class = "DynamicsCompressorNode" , js_name = attack)]
47 #[doc = "Getter for the `attack` field of this object."]
48 #[doc = ""]
49 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DynamicsCompressorNode/attack)"]
50 #[doc = ""]
51 #[doc = "*This API requires the following crate features to be activated: `AudioParam`, `DynamicsCompressorNode`*"]
52 pub fn attack(this: &DynamicsCompressorNode) -> AudioParam;
53 #[cfg(feature = "AudioParam")]
54 # [wasm_bindgen (structural , method , getter , js_class = "DynamicsCompressorNode" , js_name = release)]
55 #[doc = "Getter for the `release` field of this object."]
56 #[doc = ""]
57 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DynamicsCompressorNode/release)"]
58 #[doc = ""]
59 #[doc = "*This API requires the following crate features to be activated: `AudioParam`, `DynamicsCompressorNode`*"]
60 pub fn release(this: &DynamicsCompressorNode) -> AudioParam;
61 #[cfg(feature = "BaseAudioContext")]
62 #[wasm_bindgen(catch, constructor, js_class = "DynamicsCompressorNode")]
63 #[doc = "The `new DynamicsCompressorNode(..)` constructor, creating a new instance of `DynamicsCompressorNode`."]
64 #[doc = ""]
65 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DynamicsCompressorNode/DynamicsCompressorNode)"]
66 #[doc = ""]
67 #[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`, `DynamicsCompressorNode`*"]
68 pub fn new(context: &BaseAudioContext) -> Result<DynamicsCompressorNode, JsValue>;
69 #[cfg(all(feature = "BaseAudioContext", feature = "DynamicsCompressorOptions",))]
70 #[wasm_bindgen(catch, constructor, js_class = "DynamicsCompressorNode")]
71 #[doc = "The `new DynamicsCompressorNode(..)` constructor, creating a new instance of `DynamicsCompressorNode`."]
72 #[doc = ""]
73 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DynamicsCompressorNode/DynamicsCompressorNode)"]
74 #[doc = ""]
75 #[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`, `DynamicsCompressorNode`, `DynamicsCompressorOptions`*"]
76 pub fn new_with_options(
77 context: &BaseAudioContext,
78 options: &DynamicsCompressorOptions,
79 ) -> Result<DynamicsCompressorNode, JsValue>;
80}