Skip to main content

web_sys/features/
gen_AudioNode.rs

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