Struct web_audio_api::AudioListener
source · [−]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
sourceimpl 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
Auto Trait Implementations
impl RefUnwindSafe for AudioListener
impl Send for AudioListener
impl Sync for AudioListener
impl Unpin for AudioListener
impl UnwindSafe for AudioListener
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more