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 = BaseAudioContext , typescript_type = "BaseAudioContext" )] |
8 | #[derive (Debug, Clone, PartialEq, Eq)] |
9 | #[doc = "The `BaseAudioContext` class." ] |
10 | #[doc = "" ] |
11 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext)" ] |
12 | #[doc = "" ] |
13 | #[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`*" ] |
14 | pub type BaseAudioContext; |
15 | #[cfg (feature = "AudioDestinationNode" )] |
16 | # [wasm_bindgen (structural , method , getter , js_class = "BaseAudioContext" , js_name = destination)] |
17 | #[doc = "Getter for the `destination` field of this object." ] |
18 | #[doc = "" ] |
19 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/destination)" ] |
20 | #[doc = "" ] |
21 | #[doc = "*This API requires the following crate features to be activated: `AudioDestinationNode`, `BaseAudioContext`*" ] |
22 | pub fn destination(this: &BaseAudioContext) -> AudioDestinationNode; |
23 | # [wasm_bindgen (structural , method , getter , js_class = "BaseAudioContext" , js_name = sampleRate)] |
24 | #[doc = "Getter for the `sampleRate` field of this object." ] |
25 | #[doc = "" ] |
26 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/sampleRate)" ] |
27 | #[doc = "" ] |
28 | #[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`*" ] |
29 | pub fn sample_rate(this: &BaseAudioContext) -> f32; |
30 | # [wasm_bindgen (structural , method , getter , js_class = "BaseAudioContext" , js_name = currentTime)] |
31 | #[doc = "Getter for the `currentTime` field of this object." ] |
32 | #[doc = "" ] |
33 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/currentTime)" ] |
34 | #[doc = "" ] |
35 | #[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`*" ] |
36 | pub fn current_time(this: &BaseAudioContext) -> f64; |
37 | #[cfg (feature = "AudioListener" )] |
38 | # [wasm_bindgen (structural , method , getter , js_class = "BaseAudioContext" , js_name = listener)] |
39 | #[doc = "Getter for the `listener` field of this object." ] |
40 | #[doc = "" ] |
41 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/listener)" ] |
42 | #[doc = "" ] |
43 | #[doc = "*This API requires the following crate features to be activated: `AudioListener`, `BaseAudioContext`*" ] |
44 | pub fn listener(this: &BaseAudioContext) -> AudioListener; |
45 | #[cfg (feature = "AudioContextState" )] |
46 | # [wasm_bindgen (structural , method , getter , js_class = "BaseAudioContext" , js_name = state)] |
47 | #[doc = "Getter for the `state` field of this object." ] |
48 | #[doc = "" ] |
49 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/state)" ] |
50 | #[doc = "" ] |
51 | #[doc = "*This API requires the following crate features to be activated: `AudioContextState`, `BaseAudioContext`*" ] |
52 | pub fn state(this: &BaseAudioContext) -> AudioContextState; |
53 | #[cfg (feature = "AudioWorklet" )] |
54 | # [wasm_bindgen (structural , catch , method , getter , js_class = "BaseAudioContext" , js_name = audioWorklet)] |
55 | #[doc = "Getter for the `audioWorklet` field of this object." ] |
56 | #[doc = "" ] |
57 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/audioWorklet)" ] |
58 | #[doc = "" ] |
59 | #[doc = "*This API requires the following crate features to be activated: `AudioWorklet`, `BaseAudioContext`*" ] |
60 | pub fn audio_worklet(this: &BaseAudioContext) -> Result<AudioWorklet, JsValue>; |
61 | # [wasm_bindgen (structural , method , getter , js_class = "BaseAudioContext" , js_name = onstatechange)] |
62 | #[doc = "Getter for the `onstatechange` field of this object." ] |
63 | #[doc = "" ] |
64 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/onstatechange)" ] |
65 | #[doc = "" ] |
66 | #[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`*" ] |
67 | pub fn onstatechange(this: &BaseAudioContext) -> Option<::js_sys::Function>; |
68 | # [wasm_bindgen (structural , method , setter , js_class = "BaseAudioContext" , js_name = onstatechange)] |
69 | #[doc = "Setter for the `onstatechange` field of this object." ] |
70 | #[doc = "" ] |
71 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/onstatechange)" ] |
72 | #[doc = "" ] |
73 | #[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`*" ] |
74 | pub fn set_onstatechange(this: &BaseAudioContext, value: Option<&::js_sys::Function>); |
75 | #[cfg (feature = "AnalyserNode" )] |
76 | # [wasm_bindgen (catch , method , structural , js_class = "BaseAudioContext" , js_name = createAnalyser)] |
77 | #[doc = "The `createAnalyser()` method." ] |
78 | #[doc = "" ] |
79 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/createAnalyser)" ] |
80 | #[doc = "" ] |
81 | #[doc = "*This API requires the following crate features to be activated: `AnalyserNode`, `BaseAudioContext`*" ] |
82 | pub fn create_analyser(this: &BaseAudioContext) -> Result<AnalyserNode, JsValue>; |
83 | #[cfg (feature = "BiquadFilterNode" )] |
84 | # [wasm_bindgen (catch , method , structural , js_class = "BaseAudioContext" , js_name = createBiquadFilter)] |
85 | #[doc = "The `createBiquadFilter()` method." ] |
86 | #[doc = "" ] |
87 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/createBiquadFilter)" ] |
88 | #[doc = "" ] |
89 | #[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`, `BiquadFilterNode`*" ] |
90 | pub fn create_biquad_filter(this: &BaseAudioContext) -> Result<BiquadFilterNode, JsValue>; |
91 | #[cfg (feature = "AudioBuffer" )] |
92 | # [wasm_bindgen (catch , method , structural , js_class = "BaseAudioContext" , js_name = createBuffer)] |
93 | #[doc = "The `createBuffer()` method." ] |
94 | #[doc = "" ] |
95 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/createBuffer)" ] |
96 | #[doc = "" ] |
97 | #[doc = "*This API requires the following crate features to be activated: `AudioBuffer`, `BaseAudioContext`*" ] |
98 | pub fn create_buffer( |
99 | this: &BaseAudioContext, |
100 | number_of_channels: u32, |
101 | length: u32, |
102 | sample_rate: f32, |
103 | ) -> Result<AudioBuffer, JsValue>; |
104 | #[cfg (feature = "AudioBufferSourceNode" )] |
105 | # [wasm_bindgen (catch , method , structural , js_class = "BaseAudioContext" , js_name = createBufferSource)] |
106 | #[doc = "The `createBufferSource()` method." ] |
107 | #[doc = "" ] |
108 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/createBufferSource)" ] |
109 | #[doc = "" ] |
110 | #[doc = "*This API requires the following crate features to be activated: `AudioBufferSourceNode`, `BaseAudioContext`*" ] |
111 | pub fn create_buffer_source(this: &BaseAudioContext) -> Result<AudioBufferSourceNode, JsValue>; |
112 | #[cfg (feature = "ChannelMergerNode" )] |
113 | # [wasm_bindgen (catch , method , structural , js_class = "BaseAudioContext" , js_name = createChannelMerger)] |
114 | #[doc = "The `createChannelMerger()` method." ] |
115 | #[doc = "" ] |
116 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/createChannelMerger)" ] |
117 | #[doc = "" ] |
118 | #[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`, `ChannelMergerNode`*" ] |
119 | pub fn create_channel_merger(this: &BaseAudioContext) -> Result<ChannelMergerNode, JsValue>; |
120 | #[cfg (feature = "ChannelMergerNode" )] |
121 | # [wasm_bindgen (catch , method , structural , js_class = "BaseAudioContext" , js_name = createChannelMerger)] |
122 | #[doc = "The `createChannelMerger()` method." ] |
123 | #[doc = "" ] |
124 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/createChannelMerger)" ] |
125 | #[doc = "" ] |
126 | #[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`, `ChannelMergerNode`*" ] |
127 | pub fn create_channel_merger_with_number_of_inputs( |
128 | this: &BaseAudioContext, |
129 | number_of_inputs: u32, |
130 | ) -> Result<ChannelMergerNode, JsValue>; |
131 | #[cfg (feature = "ChannelSplitterNode" )] |
132 | # [wasm_bindgen (catch , method , structural , js_class = "BaseAudioContext" , js_name = createChannelSplitter)] |
133 | #[doc = "The `createChannelSplitter()` method." ] |
134 | #[doc = "" ] |
135 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/createChannelSplitter)" ] |
136 | #[doc = "" ] |
137 | #[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`, `ChannelSplitterNode`*" ] |
138 | pub fn create_channel_splitter(this: &BaseAudioContext) |
139 | -> Result<ChannelSplitterNode, JsValue>; |
140 | #[cfg (feature = "ChannelSplitterNode" )] |
141 | # [wasm_bindgen (catch , method , structural , js_class = "BaseAudioContext" , js_name = createChannelSplitter)] |
142 | #[doc = "The `createChannelSplitter()` method." ] |
143 | #[doc = "" ] |
144 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/createChannelSplitter)" ] |
145 | #[doc = "" ] |
146 | #[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`, `ChannelSplitterNode`*" ] |
147 | pub fn create_channel_splitter_with_number_of_outputs( |
148 | this: &BaseAudioContext, |
149 | number_of_outputs: u32, |
150 | ) -> Result<ChannelSplitterNode, JsValue>; |
151 | #[cfg (feature = "ConstantSourceNode" )] |
152 | # [wasm_bindgen (catch , method , structural , js_class = "BaseAudioContext" , js_name = createConstantSource)] |
153 | #[doc = "The `createConstantSource()` method." ] |
154 | #[doc = "" ] |
155 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/createConstantSource)" ] |
156 | #[doc = "" ] |
157 | #[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`, `ConstantSourceNode`*" ] |
158 | pub fn create_constant_source(this: &BaseAudioContext) -> Result<ConstantSourceNode, JsValue>; |
159 | #[cfg (feature = "ConvolverNode" )] |
160 | # [wasm_bindgen (catch , method , structural , js_class = "BaseAudioContext" , js_name = createConvolver)] |
161 | #[doc = "The `createConvolver()` method." ] |
162 | #[doc = "" ] |
163 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/createConvolver)" ] |
164 | #[doc = "" ] |
165 | #[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`, `ConvolverNode`*" ] |
166 | pub fn create_convolver(this: &BaseAudioContext) -> Result<ConvolverNode, JsValue>; |
167 | #[cfg (feature = "DelayNode" )] |
168 | # [wasm_bindgen (catch , method , structural , js_class = "BaseAudioContext" , js_name = createDelay)] |
169 | #[doc = "The `createDelay()` method." ] |
170 | #[doc = "" ] |
171 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/createDelay)" ] |
172 | #[doc = "" ] |
173 | #[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`, `DelayNode`*" ] |
174 | pub fn create_delay(this: &BaseAudioContext) -> Result<DelayNode, JsValue>; |
175 | #[cfg (feature = "DelayNode" )] |
176 | # [wasm_bindgen (catch , method , structural , js_class = "BaseAudioContext" , js_name = createDelay)] |
177 | #[doc = "The `createDelay()` method." ] |
178 | #[doc = "" ] |
179 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/createDelay)" ] |
180 | #[doc = "" ] |
181 | #[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`, `DelayNode`*" ] |
182 | pub fn create_delay_with_max_delay_time( |
183 | this: &BaseAudioContext, |
184 | max_delay_time: f64, |
185 | ) -> Result<DelayNode, JsValue>; |
186 | #[cfg (feature = "DynamicsCompressorNode" )] |
187 | # [wasm_bindgen (catch , method , structural , js_class = "BaseAudioContext" , js_name = createDynamicsCompressor)] |
188 | #[doc = "The `createDynamicsCompressor()` method." ] |
189 | #[doc = "" ] |
190 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/createDynamicsCompressor)" ] |
191 | #[doc = "" ] |
192 | #[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`, `DynamicsCompressorNode`*" ] |
193 | pub fn create_dynamics_compressor( |
194 | this: &BaseAudioContext, |
195 | ) -> Result<DynamicsCompressorNode, JsValue>; |
196 | #[cfg (feature = "GainNode" )] |
197 | # [wasm_bindgen (catch , method , structural , js_class = "BaseAudioContext" , js_name = createGain)] |
198 | #[doc = "The `createGain()` method." ] |
199 | #[doc = "" ] |
200 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/createGain)" ] |
201 | #[doc = "" ] |
202 | #[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`, `GainNode`*" ] |
203 | pub fn create_gain(this: &BaseAudioContext) -> Result<GainNode, JsValue>; |
204 | #[cfg (feature = "IirFilterNode" )] |
205 | # [wasm_bindgen (catch , method , structural , js_class = "BaseAudioContext" , js_name = createIIRFilter)] |
206 | #[doc = "The `createIIRFilter()` method." ] |
207 | #[doc = "" ] |
208 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/createIIRFilter)" ] |
209 | #[doc = "" ] |
210 | #[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`, `IirFilterNode`*" ] |
211 | pub fn create_iir_filter( |
212 | this: &BaseAudioContext, |
213 | feedforward: &::wasm_bindgen::JsValue, |
214 | feedback: &::wasm_bindgen::JsValue, |
215 | ) -> Result<IirFilterNode, JsValue>; |
216 | #[cfg (feature = "OscillatorNode" )] |
217 | # [wasm_bindgen (catch , method , structural , js_class = "BaseAudioContext" , js_name = createOscillator)] |
218 | #[doc = "The `createOscillator()` method." ] |
219 | #[doc = "" ] |
220 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/createOscillator)" ] |
221 | #[doc = "" ] |
222 | #[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`, `OscillatorNode`*" ] |
223 | pub fn create_oscillator(this: &BaseAudioContext) -> Result<OscillatorNode, JsValue>; |
224 | #[cfg (feature = "PannerNode" )] |
225 | # [wasm_bindgen (catch , method , structural , js_class = "BaseAudioContext" , js_name = createPanner)] |
226 | #[doc = "The `createPanner()` method." ] |
227 | #[doc = "" ] |
228 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/createPanner)" ] |
229 | #[doc = "" ] |
230 | #[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`, `PannerNode`*" ] |
231 | pub fn create_panner(this: &BaseAudioContext) -> Result<PannerNode, JsValue>; |
232 | #[cfg (feature = "PeriodicWave" )] |
233 | # [wasm_bindgen (catch , method , structural , js_class = "BaseAudioContext" , js_name = createPeriodicWave)] |
234 | #[doc = "The `createPeriodicWave()` method." ] |
235 | #[doc = "" ] |
236 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/createPeriodicWave)" ] |
237 | #[doc = "" ] |
238 | #[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`, `PeriodicWave`*" ] |
239 | pub fn create_periodic_wave( |
240 | this: &BaseAudioContext, |
241 | real: &mut [f32], |
242 | imag: &mut [f32], |
243 | ) -> Result<PeriodicWave, JsValue>; |
244 | #[cfg (all(feature = "PeriodicWave" , feature = "PeriodicWaveConstraints" ,))] |
245 | # [wasm_bindgen (catch , method , structural , js_class = "BaseAudioContext" , js_name = createPeriodicWave)] |
246 | #[doc = "The `createPeriodicWave()` method." ] |
247 | #[doc = "" ] |
248 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/createPeriodicWave)" ] |
249 | #[doc = "" ] |
250 | #[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`, `PeriodicWave`, `PeriodicWaveConstraints`*" ] |
251 | pub fn create_periodic_wave_with_constraints( |
252 | this: &BaseAudioContext, |
253 | real: &mut [f32], |
254 | imag: &mut [f32], |
255 | constraints: &PeriodicWaveConstraints, |
256 | ) -> Result<PeriodicWave, JsValue>; |
257 | #[cfg (feature = "ScriptProcessorNode" )] |
258 | # [wasm_bindgen (catch , method , structural , js_class = "BaseAudioContext" , js_name = createScriptProcessor)] |
259 | #[doc = "The `createScriptProcessor()` method." ] |
260 | #[doc = "" ] |
261 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/createScriptProcessor)" ] |
262 | #[doc = "" ] |
263 | #[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`, `ScriptProcessorNode`*" ] |
264 | pub fn create_script_processor(this: &BaseAudioContext) |
265 | -> Result<ScriptProcessorNode, JsValue>; |
266 | #[cfg (feature = "ScriptProcessorNode" )] |
267 | # [wasm_bindgen (catch , method , structural , js_class = "BaseAudioContext" , js_name = createScriptProcessor)] |
268 | #[doc = "The `createScriptProcessor()` method." ] |
269 | #[doc = "" ] |
270 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/createScriptProcessor)" ] |
271 | #[doc = "" ] |
272 | #[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`, `ScriptProcessorNode`*" ] |
273 | pub fn create_script_processor_with_buffer_size( |
274 | this: &BaseAudioContext, |
275 | buffer_size: u32, |
276 | ) -> Result<ScriptProcessorNode, JsValue>; |
277 | #[cfg (feature = "ScriptProcessorNode" )] |
278 | # [wasm_bindgen (catch , method , structural , js_class = "BaseAudioContext" , js_name = createScriptProcessor)] |
279 | #[doc = "The `createScriptProcessor()` method." ] |
280 | #[doc = "" ] |
281 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/createScriptProcessor)" ] |
282 | #[doc = "" ] |
283 | #[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`, `ScriptProcessorNode`*" ] |
284 | pub fn create_script_processor_with_buffer_size_and_number_of_input_channels( |
285 | this: &BaseAudioContext, |
286 | buffer_size: u32, |
287 | number_of_input_channels: u32, |
288 | ) -> Result<ScriptProcessorNode, JsValue>; |
289 | #[cfg (feature = "ScriptProcessorNode" )] |
290 | # [wasm_bindgen (catch , method , structural , js_class = "BaseAudioContext" , js_name = createScriptProcessor)] |
291 | #[doc = "The `createScriptProcessor()` method." ] |
292 | #[doc = "" ] |
293 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/createScriptProcessor)" ] |
294 | #[doc = "" ] |
295 | #[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`, `ScriptProcessorNode`*" ] |
296 | pub fn create_script_processor_with_buffer_size_and_number_of_input_channels_and_number_of_output_channels( |
297 | this: &BaseAudioContext, |
298 | buffer_size: u32, |
299 | number_of_input_channels: u32, |
300 | number_of_output_channels: u32, |
301 | ) -> Result<ScriptProcessorNode, JsValue>; |
302 | #[cfg (feature = "StereoPannerNode" )] |
303 | # [wasm_bindgen (catch , method , structural , js_class = "BaseAudioContext" , js_name = createStereoPanner)] |
304 | #[doc = "The `createStereoPanner()` method." ] |
305 | #[doc = "" ] |
306 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/createStereoPanner)" ] |
307 | #[doc = "" ] |
308 | #[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`, `StereoPannerNode`*" ] |
309 | pub fn create_stereo_panner(this: &BaseAudioContext) -> Result<StereoPannerNode, JsValue>; |
310 | #[cfg (feature = "WaveShaperNode" )] |
311 | # [wasm_bindgen (catch , method , structural , js_class = "BaseAudioContext" , js_name = createWaveShaper)] |
312 | #[doc = "The `createWaveShaper()` method." ] |
313 | #[doc = "" ] |
314 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/createWaveShaper)" ] |
315 | #[doc = "" ] |
316 | #[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`, `WaveShaperNode`*" ] |
317 | pub fn create_wave_shaper(this: &BaseAudioContext) -> Result<WaveShaperNode, JsValue>; |
318 | # [wasm_bindgen (catch , method , structural , js_class = "BaseAudioContext" , js_name = decodeAudioData)] |
319 | #[doc = "The `decodeAudioData()` method." ] |
320 | #[doc = "" ] |
321 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/decodeAudioData)" ] |
322 | #[doc = "" ] |
323 | #[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`*" ] |
324 | pub fn decode_audio_data( |
325 | this: &BaseAudioContext, |
326 | audio_data: &::js_sys::ArrayBuffer, |
327 | ) -> Result<::js_sys::Promise, JsValue>; |
328 | # [wasm_bindgen (catch , method , structural , js_class = "BaseAudioContext" , js_name = decodeAudioData)] |
329 | #[doc = "The `decodeAudioData()` method." ] |
330 | #[doc = "" ] |
331 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/decodeAudioData)" ] |
332 | #[doc = "" ] |
333 | #[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`*" ] |
334 | pub fn decode_audio_data_with_success_callback( |
335 | this: &BaseAudioContext, |
336 | audio_data: &::js_sys::ArrayBuffer, |
337 | success_callback: &::js_sys::Function, |
338 | ) -> Result<::js_sys::Promise, JsValue>; |
339 | # [wasm_bindgen (catch , method , structural , js_class = "BaseAudioContext" , js_name = decodeAudioData)] |
340 | #[doc = "The `decodeAudioData()` method." ] |
341 | #[doc = "" ] |
342 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/decodeAudioData)" ] |
343 | #[doc = "" ] |
344 | #[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`*" ] |
345 | pub fn decode_audio_data_with_success_callback_and_error_callback( |
346 | this: &BaseAudioContext, |
347 | audio_data: &::js_sys::ArrayBuffer, |
348 | success_callback: &::js_sys::Function, |
349 | error_callback: &::js_sys::Function, |
350 | ) -> Result<::js_sys::Promise, JsValue>; |
351 | # [wasm_bindgen (catch , method , structural , js_class = "BaseAudioContext" , js_name = resume)] |
352 | #[doc = "The `resume()` method." ] |
353 | #[doc = "" ] |
354 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/resume)" ] |
355 | #[doc = "" ] |
356 | #[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`*" ] |
357 | pub fn resume(this: &BaseAudioContext) -> Result<::js_sys::Promise, JsValue>; |
358 | } |
359 | |