web_sys/features/
gen_ChannelSplitterNode.rs1#![allow(unused_imports)]
2#![allow(clippy::all)]
3use super::*;
4use wasm_bindgen::prelude::*;
5#[wasm_bindgen]
6extern "C" {
7 #[wasm_bindgen(
8 extends = "AudioNode",
9 extends = "EventTarget",
10 extends = "::js_sys::Object",
11 js_name = "ChannelSplitterNode",
12 typescript_type = "ChannelSplitterNode"
13 )]
14 #[derive(Debug, Clone, PartialEq, Eq)]
15 #[doc = "The `ChannelSplitterNode` class."]
16 #[doc = ""]
17 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ChannelSplitterNode)"]
18 #[doc = ""]
19 #[doc = "*This API requires the following crate features to be activated: `ChannelSplitterNode`*"]
20 pub type ChannelSplitterNode;
21 #[cfg(feature = "BaseAudioContext")]
22 #[wasm_bindgen(catch, constructor, js_class = "ChannelSplitterNode")]
23 #[doc = "The `new ChannelSplitterNode(..)` constructor, creating a new instance of `ChannelSplitterNode`."]
24 #[doc = ""]
25 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ChannelSplitterNode/ChannelSplitterNode)"]
26 #[doc = ""]
27 #[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`, `ChannelSplitterNode`*"]
28 pub fn new(context: &BaseAudioContext) -> Result<ChannelSplitterNode, JsValue>;
29 #[cfg(all(feature = "BaseAudioContext", feature = "ChannelSplitterOptions",))]
30 #[wasm_bindgen(catch, constructor, js_class = "ChannelSplitterNode")]
31 #[doc = "The `new ChannelSplitterNode(..)` constructor, creating a new instance of `ChannelSplitterNode`."]
32 #[doc = ""]
33 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ChannelSplitterNode/ChannelSplitterNode)"]
34 #[doc = ""]
35 #[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`, `ChannelSplitterNode`, `ChannelSplitterOptions`*"]
36 pub fn new_with_options(
37 context: &BaseAudioContext,
38 options: &ChannelSplitterOptions,
39 ) -> Result<ChannelSplitterNode, JsValue>;
40}