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