1 | #![allow (unused_imports)] |
2 | #![allow (clippy::all)] |
3 | use super::*; |
4 | use wasm_bindgen::prelude::*; |
5 | #[wasm_bindgen ] |
6 | extern "C" { |
7 | # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = AudioNode , typescript_type = "AudioNode" )] |
8 | #[derive (Debug, Clone, PartialEq, Eq)] |
9 | #[doc = "The `AudioNode` class." ] |
10 | #[doc = "" ] |
11 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioNode)" ] |
12 | #[doc = "" ] |
13 | #[doc = "*This API requires the following crate features to be activated: `AudioNode`*" ] |
14 | pub type AudioNode; |
15 | #[cfg (feature = "BaseAudioContext" )] |
16 | # [wasm_bindgen (structural , method , getter , js_class = "AudioNode" , js_name = context)] |
17 | #[doc = "Getter for the `context` field of this object." ] |
18 | #[doc = "" ] |
19 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioNode/context)" ] |
20 | #[doc = "" ] |
21 | #[doc = "*This API requires the following crate features to be activated: `AudioNode`, `BaseAudioContext`*" ] |
22 | pub fn context(this: &AudioNode) -> BaseAudioContext; |
23 | # [wasm_bindgen (structural , method , getter , js_class = "AudioNode" , js_name = numberOfInputs)] |
24 | #[doc = "Getter for the `numberOfInputs` field of this object." ] |
25 | #[doc = "" ] |
26 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioNode/numberOfInputs)" ] |
27 | #[doc = "" ] |
28 | #[doc = "*This API requires the following crate features to be activated: `AudioNode`*" ] |
29 | pub fn number_of_inputs(this: &AudioNode) -> u32; |
30 | # [wasm_bindgen (structural , method , getter , js_class = "AudioNode" , js_name = numberOfOutputs)] |
31 | #[doc = "Getter for the `numberOfOutputs` field of this object." ] |
32 | #[doc = "" ] |
33 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioNode/numberOfOutputs)" ] |
34 | #[doc = "" ] |
35 | #[doc = "*This API requires the following crate features to be activated: `AudioNode`*" ] |
36 | pub fn number_of_outputs(this: &AudioNode) -> u32; |
37 | # [wasm_bindgen (structural , method , getter , js_class = "AudioNode" , js_name = channelCount)] |
38 | #[doc = "Getter for the `channelCount` field of this object." ] |
39 | #[doc = "" ] |
40 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioNode/channelCount)" ] |
41 | #[doc = "" ] |
42 | #[doc = "*This API requires the following crate features to be activated: `AudioNode`*" ] |
43 | pub fn channel_count(this: &AudioNode) -> u32; |
44 | # [wasm_bindgen (structural , method , setter , js_class = "AudioNode" , js_name = channelCount)] |
45 | #[doc = "Setter for the `channelCount` field of this object." ] |
46 | #[doc = "" ] |
47 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioNode/channelCount)" ] |
48 | #[doc = "" ] |
49 | #[doc = "*This API requires the following crate features to be activated: `AudioNode`*" ] |
50 | pub fn set_channel_count(this: &AudioNode, value: u32); |
51 | #[cfg (feature = "ChannelCountMode" )] |
52 | # [wasm_bindgen (structural , method , getter , js_class = "AudioNode" , js_name = channelCountMode)] |
53 | #[doc = "Getter for the `channelCountMode` field of this object." ] |
54 | #[doc = "" ] |
55 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioNode/channelCountMode)" ] |
56 | #[doc = "" ] |
57 | #[doc = "*This API requires the following crate features to be activated: `AudioNode`, `ChannelCountMode`*" ] |
58 | pub fn channel_count_mode(this: &AudioNode) -> ChannelCountMode; |
59 | #[cfg (feature = "ChannelCountMode" )] |
60 | # [wasm_bindgen (structural , method , setter , js_class = "AudioNode" , js_name = channelCountMode)] |
61 | #[doc = "Setter for the `channelCountMode` field of this object." ] |
62 | #[doc = "" ] |
63 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioNode/channelCountMode)" ] |
64 | #[doc = "" ] |
65 | #[doc = "*This API requires the following crate features to be activated: `AudioNode`, `ChannelCountMode`*" ] |
66 | pub fn set_channel_count_mode(this: &AudioNode, value: ChannelCountMode); |
67 | #[cfg (feature = "ChannelInterpretation" )] |
68 | # [wasm_bindgen (structural , method , getter , js_class = "AudioNode" , js_name = channelInterpretation)] |
69 | #[doc = "Getter for the `channelInterpretation` field of this object." ] |
70 | #[doc = "" ] |
71 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioNode/channelInterpretation)" ] |
72 | #[doc = "" ] |
73 | #[doc = "*This API requires the following crate features to be activated: `AudioNode`, `ChannelInterpretation`*" ] |
74 | pub fn channel_interpretation(this: &AudioNode) -> ChannelInterpretation; |
75 | #[cfg (feature = "ChannelInterpretation" )] |
76 | # [wasm_bindgen (structural , method , setter , js_class = "AudioNode" , js_name = channelInterpretation)] |
77 | #[doc = "Setter for the `channelInterpretation` field of this object." ] |
78 | #[doc = "" ] |
79 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioNode/channelInterpretation)" ] |
80 | #[doc = "" ] |
81 | #[doc = "*This API requires the following crate features to be activated: `AudioNode`, `ChannelInterpretation`*" ] |
82 | pub fn set_channel_interpretation(this: &AudioNode, value: ChannelInterpretation); |
83 | # [wasm_bindgen (catch , method , structural , js_class = "AudioNode" , js_name = connect)] |
84 | #[doc = "The `connect()` method." ] |
85 | #[doc = "" ] |
86 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioNode/connect)" ] |
87 | #[doc = "" ] |
88 | #[doc = "*This API requires the following crate features to be activated: `AudioNode`*" ] |
89 | pub fn connect_with_audio_node( |
90 | this: &AudioNode, |
91 | destination: &AudioNode, |
92 | ) -> Result<AudioNode, JsValue>; |
93 | # [wasm_bindgen (catch , method , structural , js_class = "AudioNode" , js_name = connect)] |
94 | #[doc = "The `connect()` method." ] |
95 | #[doc = "" ] |
96 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioNode/connect)" ] |
97 | #[doc = "" ] |
98 | #[doc = "*This API requires the following crate features to be activated: `AudioNode`*" ] |
99 | pub fn connect_with_audio_node_and_output( |
100 | this: &AudioNode, |
101 | destination: &AudioNode, |
102 | output: u32, |
103 | ) -> Result<AudioNode, JsValue>; |
104 | # [wasm_bindgen (catch , method , structural , js_class = "AudioNode" , js_name = connect)] |
105 | #[doc = "The `connect()` method." ] |
106 | #[doc = "" ] |
107 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioNode/connect)" ] |
108 | #[doc = "" ] |
109 | #[doc = "*This API requires the following crate features to be activated: `AudioNode`*" ] |
110 | pub fn connect_with_audio_node_and_output_and_input( |
111 | this: &AudioNode, |
112 | destination: &AudioNode, |
113 | output: u32, |
114 | input: u32, |
115 | ) -> Result<AudioNode, JsValue>; |
116 | #[cfg (feature = "AudioParam" )] |
117 | # [wasm_bindgen (catch , method , structural , js_class = "AudioNode" , js_name = connect)] |
118 | #[doc = "The `connect()` method." ] |
119 | #[doc = "" ] |
120 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioNode/connect)" ] |
121 | #[doc = "" ] |
122 | #[doc = "*This API requires the following crate features to be activated: `AudioNode`, `AudioParam`*" ] |
123 | pub fn connect_with_audio_param( |
124 | this: &AudioNode, |
125 | destination: &AudioParam, |
126 | ) -> Result<(), JsValue>; |
127 | #[cfg (feature = "AudioParam" )] |
128 | # [wasm_bindgen (catch , method , structural , js_class = "AudioNode" , js_name = connect)] |
129 | #[doc = "The `connect()` method." ] |
130 | #[doc = "" ] |
131 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioNode/connect)" ] |
132 | #[doc = "" ] |
133 | #[doc = "*This API requires the following crate features to be activated: `AudioNode`, `AudioParam`*" ] |
134 | pub fn connect_with_audio_param_and_output( |
135 | this: &AudioNode, |
136 | destination: &AudioParam, |
137 | output: u32, |
138 | ) -> Result<(), JsValue>; |
139 | # [wasm_bindgen (catch , method , structural , js_class = "AudioNode" , js_name = disconnect)] |
140 | #[doc = "The `disconnect()` method." ] |
141 | #[doc = "" ] |
142 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioNode/disconnect)" ] |
143 | #[doc = "" ] |
144 | #[doc = "*This API requires the following crate features to be activated: `AudioNode`*" ] |
145 | pub fn disconnect(this: &AudioNode) -> Result<(), JsValue>; |
146 | # [wasm_bindgen (catch , method , structural , js_class = "AudioNode" , js_name = disconnect)] |
147 | #[doc = "The `disconnect()` method." ] |
148 | #[doc = "" ] |
149 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioNode/disconnect)" ] |
150 | #[doc = "" ] |
151 | #[doc = "*This API requires the following crate features to be activated: `AudioNode`*" ] |
152 | pub fn disconnect_with_output(this: &AudioNode, output: u32) -> Result<(), JsValue>; |
153 | # [wasm_bindgen (catch , method , structural , js_class = "AudioNode" , js_name = disconnect)] |
154 | #[doc = "The `disconnect()` method." ] |
155 | #[doc = "" ] |
156 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioNode/disconnect)" ] |
157 | #[doc = "" ] |
158 | #[doc = "*This API requires the following crate features to be activated: `AudioNode`*" ] |
159 | pub fn disconnect_with_audio_node( |
160 | this: &AudioNode, |
161 | destination: &AudioNode, |
162 | ) -> Result<(), JsValue>; |
163 | # [wasm_bindgen (catch , method , structural , js_class = "AudioNode" , js_name = disconnect)] |
164 | #[doc = "The `disconnect()` method." ] |
165 | #[doc = "" ] |
166 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioNode/disconnect)" ] |
167 | #[doc = "" ] |
168 | #[doc = "*This API requires the following crate features to be activated: `AudioNode`*" ] |
169 | pub fn disconnect_with_audio_node_and_output( |
170 | this: &AudioNode, |
171 | destination: &AudioNode, |
172 | output: u32, |
173 | ) -> Result<(), JsValue>; |
174 | # [wasm_bindgen (catch , method , structural , js_class = "AudioNode" , js_name = disconnect)] |
175 | #[doc = "The `disconnect()` method." ] |
176 | #[doc = "" ] |
177 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioNode/disconnect)" ] |
178 | #[doc = "" ] |
179 | #[doc = "*This API requires the following crate features to be activated: `AudioNode`*" ] |
180 | pub fn disconnect_with_audio_node_and_output_and_input( |
181 | this: &AudioNode, |
182 | destination: &AudioNode, |
183 | output: u32, |
184 | input: u32, |
185 | ) -> Result<(), JsValue>; |
186 | #[cfg (feature = "AudioParam" )] |
187 | # [wasm_bindgen (catch , method , structural , js_class = "AudioNode" , js_name = disconnect)] |
188 | #[doc = "The `disconnect()` method." ] |
189 | #[doc = "" ] |
190 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioNode/disconnect)" ] |
191 | #[doc = "" ] |
192 | #[doc = "*This API requires the following crate features to be activated: `AudioNode`, `AudioParam`*" ] |
193 | pub fn disconnect_with_audio_param( |
194 | this: &AudioNode, |
195 | destination: &AudioParam, |
196 | ) -> Result<(), JsValue>; |
197 | #[cfg (feature = "AudioParam" )] |
198 | # [wasm_bindgen (catch , method , structural , js_class = "AudioNode" , js_name = disconnect)] |
199 | #[doc = "The `disconnect()` method." ] |
200 | #[doc = "" ] |
201 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioNode/disconnect)" ] |
202 | #[doc = "" ] |
203 | #[doc = "*This API requires the following crate features to be activated: `AudioNode`, `AudioParam`*" ] |
204 | pub fn disconnect_with_audio_param_and_output( |
205 | this: &AudioNode, |
206 | destination: &AudioParam, |
207 | output: u32, |
208 | ) -> Result<(), JsValue>; |
209 | } |
210 | |