maxcountryman_web_sys/features/
gen_BaseAudioContext.rs

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