[−][src]Function music::play_sound
pub fn play_sound<T: Eq + Hash + 'static + Any>(
val: &T,
repeat: Repeat,
volume: f64
)
Plays a sound effect track.
The volume is set on a scale of 0.0 to 1.0, which means 0-100%. Values greater than 1.0 will use 1.0. Values less than 0.0 will use 0.0.