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