web_sys/features/
gen_AudioListener.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 = AudioListener , typescript_type = "AudioListener")]
8 #[derive(Debug, Clone, PartialEq, Eq)]
9 #[doc = "The `AudioListener` class."]
10 #[doc = ""]
11 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioListener)"]
12 #[doc = ""]
13 #[doc = "*This API requires the following crate features to be activated: `AudioListener`*"]
14 pub type AudioListener;
15 # [wasm_bindgen (structural , method , getter , js_class = "AudioListener" , js_name = dopplerFactor)]
16 #[doc = "Getter for the `dopplerFactor` field of this object."]
17 #[doc = ""]
18 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioListener/dopplerFactor)"]
19 #[doc = ""]
20 #[doc = "*This API requires the following crate features to be activated: `AudioListener`*"]
21 pub fn doppler_factor(this: &AudioListener) -> f64;
22 # [wasm_bindgen (structural , method , setter , js_class = "AudioListener" , js_name = dopplerFactor)]
23 #[doc = "Setter for the `dopplerFactor` field of this object."]
24 #[doc = ""]
25 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioListener/dopplerFactor)"]
26 #[doc = ""]
27 #[doc = "*This API requires the following crate features to be activated: `AudioListener`*"]
28 pub fn set_doppler_factor(this: &AudioListener, value: f64);
29 # [wasm_bindgen (structural , method , getter , js_class = "AudioListener" , js_name = speedOfSound)]
30 #[doc = "Getter for the `speedOfSound` field of this object."]
31 #[doc = ""]
32 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioListener/speedOfSound)"]
33 #[doc = ""]
34 #[doc = "*This API requires the following crate features to be activated: `AudioListener`*"]
35 pub fn speed_of_sound(this: &AudioListener) -> f64;
36 # [wasm_bindgen (structural , method , setter , js_class = "AudioListener" , js_name = speedOfSound)]
37 #[doc = "Setter for the `speedOfSound` field of this object."]
38 #[doc = ""]
39 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioListener/speedOfSound)"]
40 #[doc = ""]
41 #[doc = "*This API requires the following crate features to be activated: `AudioListener`*"]
42 pub fn set_speed_of_sound(this: &AudioListener, value: f64);
43 # [wasm_bindgen (method , structural , js_class = "AudioListener" , js_name = setOrientation)]
44 #[doc = "The `setOrientation()` method."]
45 #[doc = ""]
46 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioListener/setOrientation)"]
47 #[doc = ""]
48 #[doc = "*This API requires the following crate features to be activated: `AudioListener`*"]
49 pub fn set_orientation(
50 this: &AudioListener,
51 x: f64,
52 y: f64,
53 z: f64,
54 x_up: f64,
55 y_up: f64,
56 z_up: f64,
57 );
58 # [wasm_bindgen (method , structural , js_class = "AudioListener" , js_name = setPosition)]
59 #[doc = "The `setPosition()` method."]
60 #[doc = ""]
61 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioListener/setPosition)"]
62 #[doc = ""]
63 #[doc = "*This API requires the following crate features to be activated: `AudioListener`*"]
64 pub fn set_position(this: &AudioListener, x: f64, y: f64, z: f64);
65 # [wasm_bindgen (method , structural , js_class = "AudioListener" , js_name = setVelocity)]
66 #[doc = "The `setVelocity()` method."]
67 #[doc = ""]
68 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioListener/setVelocity)"]
69 #[doc = ""]
70 #[doc = "*This API requires the following crate features to be activated: `AudioListener`*"]
71 pub fn set_velocity(this: &AudioListener, x: f64, y: f64, z: f64);
72}