web_sys/features/
gen_AudioWorkletGlobalScope.rs1#![allow(unused_imports)]
2#![allow(clippy::all)]
3use super::*;
4use wasm_bindgen::prelude::*;
5#[wasm_bindgen]
6extern "C" {
7 # [wasm_bindgen (extends = WorkletGlobalScope , extends = :: js_sys :: Object , js_name = AudioWorkletGlobalScope , typescript_type = "AudioWorkletGlobalScope")]
8 #[derive(Debug, Clone, PartialEq, Eq)]
9 #[doc = "The `AudioWorkletGlobalScope` class."]
10 #[doc = ""]
11 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioWorkletGlobalScope)"]
12 #[doc = ""]
13 #[doc = "*This API requires the following crate features to be activated: `AudioWorkletGlobalScope`*"]
14 pub type AudioWorkletGlobalScope;
15 # [wasm_bindgen (structural , method , getter , js_class = "AudioWorkletGlobalScope" , js_name = currentFrame)]
16 #[doc = "Getter for the `currentFrame` field of this object."]
17 #[doc = ""]
18 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioWorkletGlobalScope/currentFrame)"]
19 #[doc = ""]
20 #[doc = "*This API requires the following crate features to be activated: `AudioWorkletGlobalScope`*"]
21 pub fn current_frame(this: &AudioWorkletGlobalScope) -> f64;
22 # [wasm_bindgen (structural , method , getter , js_class = "AudioWorkletGlobalScope" , js_name = currentTime)]
23 #[doc = "Getter for the `currentTime` field of this object."]
24 #[doc = ""]
25 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioWorkletGlobalScope/currentTime)"]
26 #[doc = ""]
27 #[doc = "*This API requires the following crate features to be activated: `AudioWorkletGlobalScope`*"]
28 pub fn current_time(this: &AudioWorkletGlobalScope) -> f64;
29 # [wasm_bindgen (structural , method , getter , js_class = "AudioWorkletGlobalScope" , js_name = sampleRate)]
30 #[doc = "Getter for the `sampleRate` field of this object."]
31 #[doc = ""]
32 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioWorkletGlobalScope/sampleRate)"]
33 #[doc = ""]
34 #[doc = "*This API requires the following crate features to be activated: `AudioWorkletGlobalScope`*"]
35 pub fn sample_rate(this: &AudioWorkletGlobalScope) -> f32;
36 # [wasm_bindgen (method , structural , js_class = "AudioWorkletGlobalScope" , js_name = registerProcessor)]
37 #[doc = "The `registerProcessor()` method."]
38 #[doc = ""]
39 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioWorkletGlobalScope/registerProcessor)"]
40 #[doc = ""]
41 #[doc = "*This API requires the following crate features to be activated: `AudioWorkletGlobalScope`*"]
42 pub fn register_processor(
43 this: &AudioWorkletGlobalScope,
44 name: &str,
45 processor_ctor: &::js_sys::Function,
46 );
47}