maxcountryman_web_sys/features/
gen_AudioNode.rs

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