web_sys/features/
gen_AudioProcessingEvent.rs1#![allow(unused_imports)]
2#![allow(clippy::all)]
3use super::*;
4use wasm_bindgen::prelude::*;
5#[wasm_bindgen]
6extern "C" {
7 #[wasm_bindgen(
8 extends = "Event",
9 extends = "::js_sys::Object",
10 js_name = "AudioProcessingEvent",
11 typescript_type = "AudioProcessingEvent"
12 )]
13 #[derive(Debug, Clone, PartialEq, Eq)]
14 #[doc = "The `AudioProcessingEvent` class."]
15 #[doc = ""]
16 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioProcessingEvent)"]
17 #[doc = ""]
18 #[doc = "*This API requires the following crate features to be activated: `AudioProcessingEvent`*"]
19 pub type AudioProcessingEvent;
20 #[wasm_bindgen(
21 method,
22 getter,
23 js_class = "AudioProcessingEvent",
24 js_name = "playbackTime"
25 )]
26 #[doc = "Getter for the `playbackTime` field of this object."]
27 #[doc = ""]
28 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioProcessingEvent/playbackTime)"]
29 #[doc = ""]
30 #[doc = "*This API requires the following crate features to be activated: `AudioProcessingEvent`*"]
31 pub fn playback_time(this: &AudioProcessingEvent) -> f64;
32 #[cfg(feature = "AudioBuffer")]
33 #[wasm_bindgen(
34 catch,
35 method,
36 getter,
37 js_class = "AudioProcessingEvent",
38 js_name = "inputBuffer"
39 )]
40 #[doc = "Getter for the `inputBuffer` field of this object."]
41 #[doc = ""]
42 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioProcessingEvent/inputBuffer)"]
43 #[doc = ""]
44 #[doc = "*This API requires the following crate features to be activated: `AudioBuffer`, `AudioProcessingEvent`*"]
45 pub fn input_buffer(this: &AudioProcessingEvent) -> Result<AudioBuffer, JsValue>;
46 #[cfg(feature = "AudioBuffer")]
47 #[wasm_bindgen(
48 catch,
49 method,
50 getter,
51 js_class = "AudioProcessingEvent",
52 js_name = "outputBuffer"
53 )]
54 #[doc = "Getter for the `outputBuffer` field of this object."]
55 #[doc = ""]
56 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioProcessingEvent/outputBuffer)"]
57 #[doc = ""]
58 #[doc = "*This API requires the following crate features to be activated: `AudioBuffer`, `AudioProcessingEvent`*"]
59 pub fn output_buffer(this: &AudioProcessingEvent) -> Result<AudioBuffer, JsValue>;
60}