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