maxcountryman_web_sys/features/
gen_AudioProcessingEvent.rs

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