| 1 | #![allow (unused_imports)] |
| 2 | #![allow (clippy::all)] |
| 3 | use super::*; |
| 4 | use wasm_bindgen::prelude::*; |
| 5 | #[wasm_bindgen ] |
| 6 | unsafeextern "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 unsafefn 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 unsafefn 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 unsafefn 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 unsafefn 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 unsafefn 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 unsafefn 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 unsafefn 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 unsafefn 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 (feature = "PeriodicWave" )] |
| 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`*" ] |
| 251 | pub fn create_periodic_wave_with_f32_array_and_f32_slice( |
| 252 | this: &BaseAudioContext, |
| 253 | real: &::js_sys::Float32Array, |
| 254 | imag: &mut [f32], |
| 255 | ) -> Result<PeriodicWave, JsValue>; |
| 256 | #[cfg (feature = "PeriodicWave" )] |
| 257 | # [wasm_bindgen (catch , method , structural , js_class = "BaseAudioContext" , js_name = createPeriodicWave)] |
| 258 | #[doc = "The `createPeriodicWave()` method." ] |
| 259 | #[doc = "" ] |
| 260 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/createPeriodicWave)" ] |
| 261 | #[doc = "" ] |
| 262 | #[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`, `PeriodicWave`*" ] |
| 263 | pub fn create_periodic_wave_with_f32_slice_and_f32_array( |
| 264 | this: &BaseAudioContext, |
| 265 | real: &mut [f32], |
| 266 | imag: &::js_sys::Float32Array, |
| 267 | ) -> Result<PeriodicWave, JsValue>; |
| 268 | #[cfg (feature = "PeriodicWave" )] |
| 269 | # [wasm_bindgen (catch , method , structural , js_class = "BaseAudioContext" , js_name = createPeriodicWave)] |
| 270 | #[doc = "The `createPeriodicWave()` method." ] |
| 271 | #[doc = "" ] |
| 272 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/createPeriodicWave)" ] |
| 273 | #[doc = "" ] |
| 274 | #[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`, `PeriodicWave`*" ] |
| 275 | pub fn create_periodic_wave_with_f32_array_and_f32_array( |
| 276 | this: &BaseAudioContext, |
| 277 | real: &::js_sys::Float32Array, |
| 278 | imag: &::js_sys::Float32Array, |
| 279 | ) -> Result<PeriodicWave, JsValue>; |
| 280 | #[cfg (all(feature = "PeriodicWave" , feature = "PeriodicWaveConstraints" ,))] |
| 281 | # [wasm_bindgen (catch , method , structural , js_class = "BaseAudioContext" , js_name = createPeriodicWave)] |
| 282 | #[doc = "The `createPeriodicWave()` method." ] |
| 283 | #[doc = "" ] |
| 284 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/createPeriodicWave)" ] |
| 285 | #[doc = "" ] |
| 286 | #[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`, `PeriodicWave`, `PeriodicWaveConstraints`*" ] |
| 287 | pub fn create_periodic_wave_with_constraints( |
| 288 | this: &BaseAudioContext, |
| 289 | real: &mut [f32], |
| 290 | imag: &mut [f32], |
| 291 | constraints: &PeriodicWaveConstraints, |
| 292 | ) -> Result<PeriodicWave, JsValue>; |
| 293 | #[cfg (all(feature = "PeriodicWave" , feature = "PeriodicWaveConstraints" ,))] |
| 294 | # [wasm_bindgen (catch , method , structural , js_class = "BaseAudioContext" , js_name = createPeriodicWave)] |
| 295 | #[doc = "The `createPeriodicWave()` method." ] |
| 296 | #[doc = "" ] |
| 297 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/createPeriodicWave)" ] |
| 298 | #[doc = "" ] |
| 299 | #[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`, `PeriodicWave`, `PeriodicWaveConstraints`*" ] |
| 300 | pub fn create_periodic_wave_with_f32_array_and_f32_slice_and_constraints( |
| 301 | this: &BaseAudioContext, |
| 302 | real: &::js_sys::Float32Array, |
| 303 | imag: &mut [f32], |
| 304 | constraints: &PeriodicWaveConstraints, |
| 305 | ) -> Result<PeriodicWave, JsValue>; |
| 306 | #[cfg (all(feature = "PeriodicWave" , feature = "PeriodicWaveConstraints" ,))] |
| 307 | # [wasm_bindgen (catch , method , structural , js_class = "BaseAudioContext" , js_name = createPeriodicWave)] |
| 308 | #[doc = "The `createPeriodicWave()` method." ] |
| 309 | #[doc = "" ] |
| 310 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/createPeriodicWave)" ] |
| 311 | #[doc = "" ] |
| 312 | #[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`, `PeriodicWave`, `PeriodicWaveConstraints`*" ] |
| 313 | pub fn create_periodic_wave_with_f32_slice_and_f32_array_and_constraints( |
| 314 | this: &BaseAudioContext, |
| 315 | real: &mut [f32], |
| 316 | imag: &::js_sys::Float32Array, |
| 317 | constraints: &PeriodicWaveConstraints, |
| 318 | ) -> Result<PeriodicWave, JsValue>; |
| 319 | #[cfg (all(feature = "PeriodicWave" , feature = "PeriodicWaveConstraints" ,))] |
| 320 | # [wasm_bindgen (catch , method , structural , js_class = "BaseAudioContext" , js_name = createPeriodicWave)] |
| 321 | #[doc = "The `createPeriodicWave()` method." ] |
| 322 | #[doc = "" ] |
| 323 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/createPeriodicWave)" ] |
| 324 | #[doc = "" ] |
| 325 | #[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`, `PeriodicWave`, `PeriodicWaveConstraints`*" ] |
| 326 | pub fn create_periodic_wave_with_f32_array_and_f32_array_and_constraints( |
| 327 | this: &BaseAudioContext, |
| 328 | real: &::js_sys::Float32Array, |
| 329 | imag: &::js_sys::Float32Array, |
| 330 | constraints: &PeriodicWaveConstraints, |
| 331 | ) -> Result<PeriodicWave, JsValue>; |
| 332 | #[cfg (feature = "ScriptProcessorNode" )] |
| 333 | # [wasm_bindgen (catch , method , structural , js_class = "BaseAudioContext" , js_name = createScriptProcessor)] |
| 334 | #[doc = "The `createScriptProcessor()` method." ] |
| 335 | #[doc = "" ] |
| 336 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/createScriptProcessor)" ] |
| 337 | #[doc = "" ] |
| 338 | #[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`, `ScriptProcessorNode`*" ] |
| 339 | pub fn create_script_processor(this: &BaseAudioContext) |
| 340 | -> Result<ScriptProcessorNode, JsValue>; |
| 341 | #[cfg (feature = "ScriptProcessorNode" )] |
| 342 | # [wasm_bindgen (catch , method , structural , js_class = "BaseAudioContext" , js_name = createScriptProcessor)] |
| 343 | #[doc = "The `createScriptProcessor()` method." ] |
| 344 | #[doc = "" ] |
| 345 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/createScriptProcessor)" ] |
| 346 | #[doc = "" ] |
| 347 | #[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`, `ScriptProcessorNode`*" ] |
| 348 | pub fn create_script_processor_with_buffer_size( |
| 349 | this: &BaseAudioContext, |
| 350 | buffer_size: u32, |
| 351 | ) -> Result<ScriptProcessorNode, JsValue>; |
| 352 | #[cfg (feature = "ScriptProcessorNode" )] |
| 353 | # [wasm_bindgen (catch , method , structural , js_class = "BaseAudioContext" , js_name = createScriptProcessor)] |
| 354 | #[doc = "The `createScriptProcessor()` method." ] |
| 355 | #[doc = "" ] |
| 356 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/createScriptProcessor)" ] |
| 357 | #[doc = "" ] |
| 358 | #[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`, `ScriptProcessorNode`*" ] |
| 359 | pub fn create_script_processor_with_buffer_size_and_number_of_input_channels( |
| 360 | this: &BaseAudioContext, |
| 361 | buffer_size: u32, |
| 362 | number_of_input_channels: u32, |
| 363 | ) -> Result<ScriptProcessorNode, JsValue>; |
| 364 | #[cfg (feature = "ScriptProcessorNode" )] |
| 365 | # [wasm_bindgen (catch , method , structural , js_class = "BaseAudioContext" , js_name = createScriptProcessor)] |
| 366 | #[doc = "The `createScriptProcessor()` method." ] |
| 367 | #[doc = "" ] |
| 368 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/createScriptProcessor)" ] |
| 369 | #[doc = "" ] |
| 370 | #[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`, `ScriptProcessorNode`*" ] |
| 371 | pub fn create_script_processor_with_buffer_size_and_number_of_input_channels_and_number_of_output_channels( |
| 372 | this: &BaseAudioContext, |
| 373 | buffer_size: u32, |
| 374 | number_of_input_channels: u32, |
| 375 | number_of_output_channels: u32, |
| 376 | ) -> Result<ScriptProcessorNode, JsValue>; |
| 377 | #[cfg (feature = "StereoPannerNode" )] |
| 378 | # [wasm_bindgen (catch , method , structural , js_class = "BaseAudioContext" , js_name = createStereoPanner)] |
| 379 | #[doc = "The `createStereoPanner()` method." ] |
| 380 | #[doc = "" ] |
| 381 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/createStereoPanner)" ] |
| 382 | #[doc = "" ] |
| 383 | #[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`, `StereoPannerNode`*" ] |
| 384 | pub fn create_stereo_panner(this: &BaseAudioContext) -> Result<StereoPannerNode, JsValue>; |
| 385 | #[cfg (feature = "WaveShaperNode" )] |
| 386 | # [wasm_bindgen (catch , method , structural , js_class = "BaseAudioContext" , js_name = createWaveShaper)] |
| 387 | #[doc = "The `createWaveShaper()` method." ] |
| 388 | #[doc = "" ] |
| 389 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/createWaveShaper)" ] |
| 390 | #[doc = "" ] |
| 391 | #[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`, `WaveShaperNode`*" ] |
| 392 | pub fn create_wave_shaper(this: &BaseAudioContext) -> Result<WaveShaperNode, JsValue>; |
| 393 | # [wasm_bindgen (catch , method , structural , js_class = "BaseAudioContext" , js_name = decodeAudioData)] |
| 394 | #[doc = "The `decodeAudioData()` method." ] |
| 395 | #[doc = "" ] |
| 396 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/decodeAudioData)" ] |
| 397 | #[doc = "" ] |
| 398 | #[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`*" ] |
| 399 | pub unsafefn decode_audio_data( |
| 400 | this: &BaseAudioContext, |
| 401 | audio_data: &::js_sys::ArrayBuffer, |
| 402 | ) -> Result<::js_sys::Promise, JsValue>; |
| 403 | # [wasm_bindgen (catch , method , structural , js_class = "BaseAudioContext" , js_name = decodeAudioData)] |
| 404 | #[doc = "The `decodeAudioData()` method." ] |
| 405 | #[doc = "" ] |
| 406 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/decodeAudioData)" ] |
| 407 | #[doc = "" ] |
| 408 | #[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`*" ] |
| 409 | pub unsafefn decode_audio_data_with_success_callback( |
| 410 | this: &BaseAudioContext, |
| 411 | audio_data: &::js_sys::ArrayBuffer, |
| 412 | success_callback: &::js_sys::Function, |
| 413 | ) -> Result<::js_sys::Promise, JsValue>; |
| 414 | # [wasm_bindgen (catch , method , structural , js_class = "BaseAudioContext" , js_name = decodeAudioData)] |
| 415 | #[doc = "The `decodeAudioData()` method." ] |
| 416 | #[doc = "" ] |
| 417 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/decodeAudioData)" ] |
| 418 | #[doc = "" ] |
| 419 | #[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`*" ] |
| 420 | pub unsafefn decode_audio_data_with_success_callback_and_error_callback( |
| 421 | this: &BaseAudioContext, |
| 422 | audio_data: &::js_sys::ArrayBuffer, |
| 423 | success_callback: &::js_sys::Function, |
| 424 | error_callback: &::js_sys::Function, |
| 425 | ) -> Result<::js_sys::Promise, JsValue>; |
| 426 | # [wasm_bindgen (catch , method , structural , js_class = "BaseAudioContext" , js_name = resume)] |
| 427 | #[doc = "The `resume()` method." ] |
| 428 | #[doc = "" ] |
| 429 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/resume)" ] |
| 430 | #[doc = "" ] |
| 431 | #[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`*" ] |
| 432 | pub unsafefn resume(this: &BaseAudioContext) -> Result<::js_sys::Promise, JsValue>; |
| 433 | } |
| 434 | |