1 #![allow(unused_imports)]
2 use super::*;
3 use wasm_bindgen::prelude::*;
4 #[wasm_bindgen]
5 extern "C" {
6     # [wasm_bindgen (extends = MidiPort , extends = EventTarget , extends = :: js_sys :: Object , js_name = MIDIOutput , typescript_type = "MIDIOutput")]
7     #[derive(Debug, Clone, PartialEq, Eq)]
8     #[doc = "The `MidiOutput` class."]
9     #[doc = ""]
10     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MIDIOutput)"]
11     #[doc = ""]
12     #[doc = "*This API requires the following crate features to be activated: `MidiOutput`*"]
13     pub type MidiOutput;
14     # [wasm_bindgen (method , structural , js_class = "MIDIOutput" , js_name = clear)]
15     #[doc = "The `clear()` method."]
16     #[doc = ""]
17     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MIDIOutput/clear)"]
18     #[doc = ""]
19     #[doc = "*This API requires the following crate features to be activated: `MidiOutput`*"]
clear(this: &MidiOutput)20     pub fn clear(this: &MidiOutput);
21     # [wasm_bindgen (catch , method , structural , js_class = "MIDIOutput" , js_name = send)]
22     #[doc = "The `send()` method."]
23     #[doc = ""]
24     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MIDIOutput/send)"]
25     #[doc = ""]
26     #[doc = "*This API requires the following crate features to be activated: `MidiOutput`*"]
send(this: &MidiOutput, data: &::wasm_bindgen::JsValue) -> Result<(), JsValue>27     pub fn send(this: &MidiOutput, data: &::wasm_bindgen::JsValue) -> Result<(), JsValue>;
28     # [wasm_bindgen (catch , method , structural , js_class = "MIDIOutput" , js_name = send)]
29     #[doc = "The `send()` method."]
30     #[doc = ""]
31     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MIDIOutput/send)"]
32     #[doc = ""]
33     #[doc = "*This API requires the following crate features to be activated: `MidiOutput`*"]
send_with_timestamp( this: &MidiOutput, data: &::wasm_bindgen::JsValue, timestamp: f64, ) -> Result<(), JsValue>34     pub fn send_with_timestamp(
35         this: &MidiOutput,
36         data: &::wasm_bindgen::JsValue,
37         timestamp: f64,
38     ) -> Result<(), JsValue>;
39 }
40