web_sys/features/
gen_AudioNode.rs

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