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