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