1#![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 = PannerNode , typescript_type = "PannerNode")]
8 #[derive(Debug, Clone, PartialEq, Eq)]
9 #[doc = "The `PannerNode` class."]
10 #[doc = ""]
11 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PannerNode)"]
12 #[doc = ""]
13 #[doc = "*This API requires the following crate features to be activated: `PannerNode`*"]
14 pub type PannerNode;
15 #[cfg(feature = "PanningModelType")]
16 # [wasm_bindgen (structural , method , getter , js_class = "PannerNode" , js_name = panningModel)]
17 #[doc = "Getter for the `panningModel` field of this object."]
18 #[doc = ""]
19 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PannerNode/panningModel)"]
20 #[doc = ""]
21 #[doc = "*This API requires the following crate features to be activated: `PannerNode`, `PanningModelType`*"]
22 pub fn panning_model(this: &PannerNode) -> PanningModelType;
23 #[cfg(feature = "PanningModelType")]
24 # [wasm_bindgen (structural , method , setter , js_class = "PannerNode" , js_name = panningModel)]
25 #[doc = "Setter for the `panningModel` field of this object."]
26 #[doc = ""]
27 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PannerNode/panningModel)"]
28 #[doc = ""]
29 #[doc = "*This API requires the following crate features to be activated: `PannerNode`, `PanningModelType`*"]
30 pub fn set_panning_model(this: &PannerNode, value: PanningModelType);
31 #[cfg(feature = "AudioParam")]
32 # [wasm_bindgen (structural , method , getter , js_class = "PannerNode" , js_name = positionX)]
33 #[doc = "Getter for the `positionX` field of this object."]
34 #[doc = ""]
35 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PannerNode/positionX)"]
36 #[doc = ""]
37 #[doc = "*This API requires the following crate features to be activated: `AudioParam`, `PannerNode`*"]
38 pub fn position_x(this: &PannerNode) -> AudioParam;
39 #[cfg(feature = "AudioParam")]
40 # [wasm_bindgen (structural , method , getter , js_class = "PannerNode" , js_name = positionY)]
41 #[doc = "Getter for the `positionY` field of this object."]
42 #[doc = ""]
43 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PannerNode/positionY)"]
44 #[doc = ""]
45 #[doc = "*This API requires the following crate features to be activated: `AudioParam`, `PannerNode`*"]
46 pub fn position_y(this: &PannerNode) -> AudioParam;
47 #[cfg(feature = "AudioParam")]
48 # [wasm_bindgen (structural , method , getter , js_class = "PannerNode" , js_name = positionZ)]
49 #[doc = "Getter for the `positionZ` field of this object."]
50 #[doc = ""]
51 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PannerNode/positionZ)"]
52 #[doc = ""]
53 #[doc = "*This API requires the following crate features to be activated: `AudioParam`, `PannerNode`*"]
54 pub fn position_z(this: &PannerNode) -> AudioParam;
55 #[cfg(feature = "AudioParam")]
56 # [wasm_bindgen (structural , method , getter , js_class = "PannerNode" , js_name = orientationX)]
57 #[doc = "Getter for the `orientationX` field of this object."]
58 #[doc = ""]
59 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PannerNode/orientationX)"]
60 #[doc = ""]
61 #[doc = "*This API requires the following crate features to be activated: `AudioParam`, `PannerNode`*"]
62 pub fn orientation_x(this: &PannerNode) -> AudioParam;
63 #[cfg(feature = "AudioParam")]
64 # [wasm_bindgen (structural , method , getter , js_class = "PannerNode" , js_name = orientationY)]
65 #[doc = "Getter for the `orientationY` field of this object."]
66 #[doc = ""]
67 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PannerNode/orientationY)"]
68 #[doc = ""]
69 #[doc = "*This API requires the following crate features to be activated: `AudioParam`, `PannerNode`*"]
70 pub fn orientation_y(this: &PannerNode) -> AudioParam;
71 #[cfg(feature = "AudioParam")]
72 # [wasm_bindgen (structural , method , getter , js_class = "PannerNode" , js_name = orientationZ)]
73 #[doc = "Getter for the `orientationZ` field of this object."]
74 #[doc = ""]
75 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PannerNode/orientationZ)"]
76 #[doc = ""]
77 #[doc = "*This API requires the following crate features to be activated: `AudioParam`, `PannerNode`*"]
78 pub fn orientation_z(this: &PannerNode) -> AudioParam;
79 #[cfg(feature = "DistanceModelType")]
80 # [wasm_bindgen (structural , method , getter , js_class = "PannerNode" , js_name = distanceModel)]
81 #[doc = "Getter for the `distanceModel` field of this object."]
82 #[doc = ""]
83 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PannerNode/distanceModel)"]
84 #[doc = ""]
85 #[doc = "*This API requires the following crate features to be activated: `DistanceModelType`, `PannerNode`*"]
86 pub fn distance_model(this: &PannerNode) -> DistanceModelType;
87 #[cfg(feature = "DistanceModelType")]
88 # [wasm_bindgen (structural , method , setter , js_class = "PannerNode" , js_name = distanceModel)]
89 #[doc = "Setter for the `distanceModel` field of this object."]
90 #[doc = ""]
91 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PannerNode/distanceModel)"]
92 #[doc = ""]
93 #[doc = "*This API requires the following crate features to be activated: `DistanceModelType`, `PannerNode`*"]
94 pub fn set_distance_model(this: &PannerNode, value: DistanceModelType);
95 # [wasm_bindgen (structural , method , getter , js_class = "PannerNode" , js_name = refDistance)]
96 #[doc = "Getter for the `refDistance` field of this object."]
97 #[doc = ""]
98 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PannerNode/refDistance)"]
99 #[doc = ""]
100 #[doc = "*This API requires the following crate features to be activated: `PannerNode`*"]
101 pub fn ref_distance(this: &PannerNode) -> f64;
102 # [wasm_bindgen (structural , method , setter , js_class = "PannerNode" , js_name = refDistance)]
103 #[doc = "Setter for the `refDistance` field of this object."]
104 #[doc = ""]
105 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PannerNode/refDistance)"]
106 #[doc = ""]
107 #[doc = "*This API requires the following crate features to be activated: `PannerNode`*"]
108 pub fn set_ref_distance(this: &PannerNode, value: f64);
109 # [wasm_bindgen (structural , method , getter , js_class = "PannerNode" , js_name = maxDistance)]
110 #[doc = "Getter for the `maxDistance` field of this object."]
111 #[doc = ""]
112 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PannerNode/maxDistance)"]
113 #[doc = ""]
114 #[doc = "*This API requires the following crate features to be activated: `PannerNode`*"]
115 pub fn max_distance(this: &PannerNode) -> f64;
116 # [wasm_bindgen (structural , method , setter , js_class = "PannerNode" , js_name = maxDistance)]
117 #[doc = "Setter for the `maxDistance` field of this object."]
118 #[doc = ""]
119 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PannerNode/maxDistance)"]
120 #[doc = ""]
121 #[doc = "*This API requires the following crate features to be activated: `PannerNode`*"]
122 pub fn set_max_distance(this: &PannerNode, value: f64);
123 # [wasm_bindgen (structural , method , getter , js_class = "PannerNode" , js_name = rolloffFactor)]
124 #[doc = "Getter for the `rolloffFactor` field of this object."]
125 #[doc = ""]
126 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PannerNode/rolloffFactor)"]
127 #[doc = ""]
128 #[doc = "*This API requires the following crate features to be activated: `PannerNode`*"]
129 pub fn rolloff_factor(this: &PannerNode) -> f64;
130 # [wasm_bindgen (structural , method , setter , js_class = "PannerNode" , js_name = rolloffFactor)]
131 #[doc = "Setter for the `rolloffFactor` field of this object."]
132 #[doc = ""]
133 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PannerNode/rolloffFactor)"]
134 #[doc = ""]
135 #[doc = "*This API requires the following crate features to be activated: `PannerNode`*"]
136 pub fn set_rolloff_factor(this: &PannerNode, value: f64);
137 # [wasm_bindgen (structural , method , getter , js_class = "PannerNode" , js_name = coneInnerAngle)]
138 #[doc = "Getter for the `coneInnerAngle` field of this object."]
139 #[doc = ""]
140 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PannerNode/coneInnerAngle)"]
141 #[doc = ""]
142 #[doc = "*This API requires the following crate features to be activated: `PannerNode`*"]
143 pub fn cone_inner_angle(this: &PannerNode) -> f64;
144 # [wasm_bindgen (structural , method , setter , js_class = "PannerNode" , js_name = coneInnerAngle)]
145 #[doc = "Setter for the `coneInnerAngle` field of this object."]
146 #[doc = ""]
147 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PannerNode/coneInnerAngle)"]
148 #[doc = ""]
149 #[doc = "*This API requires the following crate features to be activated: `PannerNode`*"]
150 pub fn set_cone_inner_angle(this: &PannerNode, value: f64);
151 # [wasm_bindgen (structural , method , getter , js_class = "PannerNode" , js_name = coneOuterAngle)]
152 #[doc = "Getter for the `coneOuterAngle` field of this object."]
153 #[doc = ""]
154 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PannerNode/coneOuterAngle)"]
155 #[doc = ""]
156 #[doc = "*This API requires the following crate features to be activated: `PannerNode`*"]
157 pub fn cone_outer_angle(this: &PannerNode) -> f64;
158 # [wasm_bindgen (structural , method , setter , js_class = "PannerNode" , js_name = coneOuterAngle)]
159 #[doc = "Setter for the `coneOuterAngle` field of this object."]
160 #[doc = ""]
161 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PannerNode/coneOuterAngle)"]
162 #[doc = ""]
163 #[doc = "*This API requires the following crate features to be activated: `PannerNode`*"]
164 pub fn set_cone_outer_angle(this: &PannerNode, value: f64);
165 # [wasm_bindgen (structural , method , getter , js_class = "PannerNode" , js_name = coneOuterGain)]
166 #[doc = "Getter for the `coneOuterGain` field of this object."]
167 #[doc = ""]
168 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PannerNode/coneOuterGain)"]
169 #[doc = ""]
170 #[doc = "*This API requires the following crate features to be activated: `PannerNode`*"]
171 pub fn cone_outer_gain(this: &PannerNode) -> f64;
172 # [wasm_bindgen (structural , method , setter , js_class = "PannerNode" , js_name = coneOuterGain)]
173 #[doc = "Setter for the `coneOuterGain` field of this object."]
174 #[doc = ""]
175 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PannerNode/coneOuterGain)"]
176 #[doc = ""]
177 #[doc = "*This API requires the following crate features to be activated: `PannerNode`*"]
178 pub fn set_cone_outer_gain(this: &PannerNode, value: f64);
179 #[cfg(feature = "BaseAudioContext")]
180 #[wasm_bindgen(catch, constructor, js_class = "PannerNode")]
181 #[doc = "The `new PannerNode(..)` constructor, creating a new instance of `PannerNode`."]
182 #[doc = ""]
183 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PannerNode/PannerNode)"]
184 #[doc = ""]
185 #[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`, `PannerNode`*"]
186 pub fn new(context: &BaseAudioContext) -> Result<PannerNode, JsValue>;
187 #[cfg(all(feature = "BaseAudioContext", feature = "PannerOptions",))]
188 #[wasm_bindgen(catch, constructor, js_class = "PannerNode")]
189 #[doc = "The `new PannerNode(..)` constructor, creating a new instance of `PannerNode`."]
190 #[doc = ""]
191 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PannerNode/PannerNode)"]
192 #[doc = ""]
193 #[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`, `PannerNode`, `PannerOptions`*"]
194 pub fn new_with_options(
195 context: &BaseAudioContext,
196 options: &PannerOptions,
197 ) -> Result<PannerNode, JsValue>;
198 # [wasm_bindgen (method , structural , js_class = "PannerNode" , js_name = setOrientation)]
199 #[doc = "The `setOrientation()` method."]
200 #[doc = ""]
201 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PannerNode/setOrientation)"]
202 #[doc = ""]
203 #[doc = "*This API requires the following crate features to be activated: `PannerNode`*"]
204 pub fn set_orientation(this: &PannerNode, x: f64, y: f64, z: f64);
205 # [wasm_bindgen (method , structural , js_class = "PannerNode" , js_name = setPosition)]
206 #[doc = "The `setPosition()` method."]
207 #[doc = ""]
208 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PannerNode/setPosition)"]
209 #[doc = ""]
210 #[doc = "*This API requires the following crate features to be activated: `PannerNode`*"]
211 pub fn set_position(this: &PannerNode, x: f64, y: f64, z: f64);
212 # [wasm_bindgen (method , structural , js_class = "PannerNode" , js_name = setVelocity)]
213 #[doc = "The `setVelocity()` method."]
214 #[doc = ""]
215 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PannerNode/setVelocity)"]
216 #[doc = ""]
217 #[doc = "*This API requires the following crate features to be activated: `PannerNode`*"]
218 pub fn set_velocity(this: &PannerNode, x: f64, y: f64, z: f64);
219}