pub struct AudioSource { /* private fields */ }Implementations§
Source§impl AudioSource
impl AudioSource
pub fn new() -> AudioSource
pub fn play(&self, audio: &Audio)
pub fn stop(&self)
pub fn repeat(&self, repeat: bool)
pub fn playing(&self) -> bool
pub fn set_position(&self, x: f32, y: f32, z: f32)
pub fn set_volume(&self, volume: f32)
pub fn set_pitch(&self, pitch: f32)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AudioSource
impl RefUnwindSafe for AudioSource
impl Send for AudioSource
impl Sync for AudioSource
impl Unpin for AudioSource
impl UnwindSafe for AudioSource
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