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