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