pub struct SoundAlias<'snd, 'bind>(/* private fields */);Implementations§
Source§impl<'aud, 'bind> SoundAlias<'aud, 'bind>
impl<'aud, 'bind> SoundAlias<'aud, 'bind>
pub fn is_sound_valid(&self) -> bool
pub fn frame_count(&self) -> u32
pub unsafe fn inner(self) -> Sound
Sourcepub fn is_playing(&self) -> bool
pub fn is_playing(&self) -> bool
Checks if a sound is currently playing.
Sourcepub fn set_volume(&self, volume: f32)
pub fn set_volume(&self, volume: f32)
Sets volume for a sound (1.0 is max level).
pub fn set_pan(&self, pan: f32)
Trait Implementations§
Auto Trait Implementations§
impl<'snd, 'bind> Freeze for SoundAlias<'snd, 'bind>
impl<'snd, 'bind> RefUnwindSafe for SoundAlias<'snd, 'bind>
impl<'snd, 'bind> !Send for SoundAlias<'snd, 'bind>
impl<'snd, 'bind> !Sync for SoundAlias<'snd, 'bind>
impl<'snd, 'bind> Unpin for SoundAlias<'snd, 'bind>
impl<'snd, 'bind> UnsafeUnpin for SoundAlias<'snd, 'bind>
impl<'snd, 'bind> UnwindSafe for SoundAlias<'snd, 'bind>
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