pub struct AudioListener { /* private fields */ }
Expand description
Represents the position and orientation of the person listening to the audio scene
All PannerNode
objects spatialize in relation to the BaseAudioContext’s listener.
§Usage
For example usage, check the PannerNode
docs.
Implementations§
Source§impl AudioListener
impl AudioListener
pub fn position_x(&self) -> &AudioParam
pub fn position_y(&self) -> &AudioParam
pub fn position_z(&self) -> &AudioParam
pub fn forward_x(&self) -> &AudioParam
pub fn forward_y(&self) -> &AudioParam
pub fn forward_z(&self) -> &AudioParam
pub fn up_x(&self) -> &AudioParam
pub fn up_y(&self) -> &AudioParam
pub fn up_z(&self) -> &AudioParam
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AudioListener
impl RefUnwindSafe for AudioListener
impl Send for AudioListener
impl Sync for AudioListener
impl Unpin for AudioListener
impl UnwindSafe for AudioListener
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more