Struct rugra::sound::Sound
[−]
[src]
pub struct Sound { // some fields omitted }
Sound
Methods
impl Sound
fn load(s: &str) -> Sound
Load a sound from a file
fn repeat(&mut self) -> &mut Self
Repeat the sound
fn play(&mut self) -> &mut Self
Play the sound
fn stop(&mut self) -> &mut Self
Stop the sound
fn pause(&mut self) -> &mut Self
Pause the sound
fn volume(&mut self, vol: f32) -> &mut Self
Set the volume