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