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