web_sys/features/
gen_OfflineAudioContext.rs

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