INNER CODE UNIT · Rust
stop_music
CleanCut/rusty_engine · src/audio.rs:117
pub fn stop_music(&mut self) {
if self.music_playing {
self.music_playing = false;
self.music_queue.push(None);
}
}
/// Whether music is currently playing.
pub fn music_playing(&self) -> bool {
self.music_playing
}
}
#[derive(Copy, Clone, Debug)]
/// Sound effects included with the downloadable asset pack. You can hear these all played in the
/// `sfx` example by cloning the `rusty_engine` repository and running the following command:
///
/// ```text
/// cargo run --release --example sfx_sampler