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