From 9835e2ae736235810b4ea1c162ca5e65c547e770 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 18 May 2024 04:49:50 +0200 Subject: Merging upstream version 1.71.1+dfsg1. Signed-off-by: Daniel Baumann --- .../src/features/gen_AudioWorkletGlobalScope.rs | 46 ++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 vendor/web-sys/src/features/gen_AudioWorkletGlobalScope.rs (limited to 'vendor/web-sys/src/features/gen_AudioWorkletGlobalScope.rs') diff --git a/vendor/web-sys/src/features/gen_AudioWorkletGlobalScope.rs b/vendor/web-sys/src/features/gen_AudioWorkletGlobalScope.rs new file mode 100644 index 000000000..4057aeaa1 --- /dev/null +++ b/vendor/web-sys/src/features/gen_AudioWorkletGlobalScope.rs @@ -0,0 +1,46 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [wasm_bindgen (extends = WorkletGlobalScope , extends = :: js_sys :: Object , js_name = AudioWorkletGlobalScope , typescript_type = "AudioWorkletGlobalScope")] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `AudioWorkletGlobalScope` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioWorkletGlobalScope)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioWorkletGlobalScope`*"] + pub type AudioWorkletGlobalScope; + # [wasm_bindgen (structural , method , getter , js_class = "AudioWorkletGlobalScope" , js_name = currentFrame)] + #[doc = "Getter for the `currentFrame` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioWorkletGlobalScope/currentFrame)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioWorkletGlobalScope`*"] + pub fn current_frame(this: &AudioWorkletGlobalScope) -> f64; + # [wasm_bindgen (structural , method , getter , js_class = "AudioWorkletGlobalScope" , js_name = currentTime)] + #[doc = "Getter for the `currentTime` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioWorkletGlobalScope/currentTime)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioWorkletGlobalScope`*"] + pub fn current_time(this: &AudioWorkletGlobalScope) -> f64; + # [wasm_bindgen (structural , method , getter , js_class = "AudioWorkletGlobalScope" , js_name = sampleRate)] + #[doc = "Getter for the `sampleRate` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioWorkletGlobalScope/sampleRate)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioWorkletGlobalScope`*"] + pub fn sample_rate(this: &AudioWorkletGlobalScope) -> f32; + # [wasm_bindgen (method , structural , js_class = "AudioWorkletGlobalScope" , js_name = registerProcessor)] + #[doc = "The `registerProcessor()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioWorkletGlobalScope/registerProcessor)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioWorkletGlobalScope`*"] + pub fn register_processor( + this: &AudioWorkletGlobalScope, + name: &str, + processor_ctor: &::js_sys::Function, + ); +} -- cgit v1.2.3