web_sys/features/
gen_AudioParam.rs1#![allow(unused_imports)]
2#![allow(clippy::all)]
3use super::*;
4use wasm_bindgen::prelude::*;
5#[wasm_bindgen]
6extern "C" {
7 # [wasm_bindgen (extends = :: js_sys :: Object , js_name = AudioParam , typescript_type = "AudioParam")]
8 #[derive(Debug, Clone, PartialEq, Eq)]
9 #[doc = "The `AudioParam` class."]
10 #[doc = ""]
11 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioParam)"]
12 #[doc = ""]
13 #[doc = "*This API requires the following crate features to be activated: `AudioParam`*"]
14 pub type AudioParam;
15 # [wasm_bindgen (structural , method , getter , js_class = "AudioParam" , js_name = value)]
16 #[doc = "Getter for the `value` field of this object."]
17 #[doc = ""]
18 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioParam/value)"]
19 #[doc = ""]
20 #[doc = "*This API requires the following crate features to be activated: `AudioParam`*"]
21 pub fn value(this: &AudioParam) -> f32;
22 # [wasm_bindgen (structural , method , setter , js_class = "AudioParam" , js_name = value)]
23 #[doc = "Setter for the `value` field of this object."]
24 #[doc = ""]
25 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioParam/value)"]
26 #[doc = ""]
27 #[doc = "*This API requires the following crate features to be activated: `AudioParam`*"]
28 pub fn set_value(this: &AudioParam, value: f32);
29 # [wasm_bindgen (structural , method , getter , js_class = "AudioParam" , js_name = defaultValue)]
30 #[doc = "Getter for the `defaultValue` field of this object."]
31 #[doc = ""]
32 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioParam/defaultValue)"]
33 #[doc = ""]
34 #[doc = "*This API requires the following crate features to be activated: `AudioParam`*"]
35 pub fn default_value(this: &AudioParam) -> f32;
36 # [wasm_bindgen (structural , method , getter , js_class = "AudioParam" , js_name = minValue)]
37 #[doc = "Getter for the `minValue` field of this object."]
38 #[doc = ""]
39 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioParam/minValue)"]
40 #[doc = ""]
41 #[doc = "*This API requires the following crate features to be activated: `AudioParam`*"]
42 pub fn min_value(this: &AudioParam) -> f32;
43 # [wasm_bindgen (structural , method , getter , js_class = "AudioParam" , js_name = maxValue)]
44 #[doc = "Getter for the `maxValue` field of this object."]
45 #[doc = ""]
46 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioParam/maxValue)"]
47 #[doc = ""]
48 #[doc = "*This API requires the following crate features to be activated: `AudioParam`*"]
49 pub fn max_value(this: &AudioParam) -> f32;
50 # [wasm_bindgen (catch , method , structural , js_class = "AudioParam" , js_name = cancelScheduledValues)]
51 #[doc = "The `cancelScheduledValues()` method."]
52 #[doc = ""]
53 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioParam/cancelScheduledValues)"]
54 #[doc = ""]
55 #[doc = "*This API requires the following crate features to be activated: `AudioParam`*"]
56 pub fn cancel_scheduled_values(
57 this: &AudioParam,
58 start_time: f64,
59 ) -> Result<AudioParam, JsValue>;
60 # [wasm_bindgen (catch , method , structural , js_class = "AudioParam" , js_name = exponentialRampToValueAtTime)]
61 #[doc = "The `exponentialRampToValueAtTime()` method."]
62 #[doc = ""]
63 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioParam/exponentialRampToValueAtTime)"]
64 #[doc = ""]
65 #[doc = "*This API requires the following crate features to be activated: `AudioParam`*"]
66 pub fn exponential_ramp_to_value_at_time(
67 this: &AudioParam,
68 value: f32,
69 end_time: f64,
70 ) -> Result<AudioParam, JsValue>;
71 # [wasm_bindgen (catch , method , structural , js_class = "AudioParam" , js_name = linearRampToValueAtTime)]
72 #[doc = "The `linearRampToValueAtTime()` method."]
73 #[doc = ""]
74 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioParam/linearRampToValueAtTime)"]
75 #[doc = ""]
76 #[doc = "*This API requires the following crate features to be activated: `AudioParam`*"]
77 pub fn linear_ramp_to_value_at_time(
78 this: &AudioParam,
79 value: f32,
80 end_time: f64,
81 ) -> Result<AudioParam, JsValue>;
82 # [wasm_bindgen (catch , method , structural , js_class = "AudioParam" , js_name = setTargetAtTime)]
83 #[doc = "The `setTargetAtTime()` method."]
84 #[doc = ""]
85 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioParam/setTargetAtTime)"]
86 #[doc = ""]
87 #[doc = "*This API requires the following crate features to be activated: `AudioParam`*"]
88 pub fn set_target_at_time(
89 this: &AudioParam,
90 target: f32,
91 start_time: f64,
92 time_constant: f64,
93 ) -> Result<AudioParam, JsValue>;
94 # [wasm_bindgen (catch , method , structural , js_class = "AudioParam" , js_name = setValueAtTime)]
95 #[doc = "The `setValueAtTime()` method."]
96 #[doc = ""]
97 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioParam/setValueAtTime)"]
98 #[doc = ""]
99 #[doc = "*This API requires the following crate features to be activated: `AudioParam`*"]
100 pub fn set_value_at_time(
101 this: &AudioParam,
102 value: f32,
103 start_time: f64,
104 ) -> Result<AudioParam, JsValue>;
105 # [wasm_bindgen (catch , method , structural , js_class = "AudioParam" , js_name = setValueCurveAtTime)]
106 #[doc = "The `setValueCurveAtTime()` method."]
107 #[doc = ""]
108 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioParam/setValueCurveAtTime)"]
109 #[doc = ""]
110 #[doc = "*This API requires the following crate features to be activated: `AudioParam`*"]
111 pub fn set_value_curve_at_time(
112 this: &AudioParam,
113 values: &mut [f32],
114 start_time: f64,
115 duration: f64,
116 ) -> Result<AudioParam, JsValue>;
117 # [wasm_bindgen (catch , method , structural , js_class = "AudioParam" , js_name = setValueCurveAtTime)]
118 #[doc = "The `setValueCurveAtTime()` method."]
119 #[doc = ""]
120 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioParam/setValueCurveAtTime)"]
121 #[doc = ""]
122 #[doc = "*This API requires the following crate features to be activated: `AudioParam`*"]
123 pub fn set_value_curve_at_time_with_f32_array(
124 this: &AudioParam,
125 values: &::js_sys::Float32Array,
126 start_time: f64,
127 duration: f64,
128 ) -> Result<AudioParam, JsValue>;
129}