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