Struct geng_audio::SoundEffect
source · pub struct SoundEffect { /* private fields */ }
Implementations§
source§impl SoundEffect
impl SoundEffect
pub fn play(&mut self)
pub fn play_from(&mut self, offset: Duration)
pub fn stop(&mut self)
pub fn set_volume(&mut self, volume: f64)
pub fn set_speed(&mut self, speed: f64)
pub fn set_position(&mut self, position: vec3<f64>)
pub fn set_ref_distance(&mut self, ref_distance: f64)
pub fn set_max_distance(&mut self, max_distance: f64)
Auto Trait Implementations§
impl !RefUnwindSafe for SoundEffect
impl Send for SoundEffect
impl !Sync for SoundEffect
impl Unpin for SoundEffect
impl !UnwindSafe for SoundEffect
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