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