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 = MediaElementAudioSourceNode , typescript_type = "MediaElementAudioSourceNode")]
7     #[derive(Debug, Clone, PartialEq, Eq)]
8     #[doc = "The `MediaElementAudioSourceNode` class."]
9     #[doc = ""]
10     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaElementAudioSourceNode)"]
11     #[doc = ""]
12     #[doc = "*This API requires the following crate features to be activated: `MediaElementAudioSourceNode`*"]
13     pub type MediaElementAudioSourceNode;
14     #[cfg(all(feature = "AudioContext", feature = "MediaElementAudioSourceOptions",))]
15     #[wasm_bindgen(catch, constructor, js_class = "MediaElementAudioSourceNode")]
16     #[doc = "The `new MediaElementAudioSourceNode(..)` constructor, creating a new instance of `MediaElementAudioSourceNode`."]
17     #[doc = ""]
18     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaElementAudioSourceNode/MediaElementAudioSourceNode)"]
19     #[doc = ""]
20     #[doc = "*This API requires the following crate features to be activated: `AudioContext`, `MediaElementAudioSourceNode`, `MediaElementAudioSourceOptions`*"]
new( context: &AudioContext, options: &MediaElementAudioSourceOptions, ) -> Result<MediaElementAudioSourceNode, JsValue>21     pub fn new(
22         context: &AudioContext,
23         options: &MediaElementAudioSourceOptions,
24     ) -> Result<MediaElementAudioSourceNode, JsValue>;
25 }
26