externcrate ears;useears::{Sound, AudioController};fnplay_file(file:&str){// Create a new Sound.
letmut snd =Sound::new(file).unwrap();// Play the Sound
snd.play();// Wait until the end of the sound
while snd.is_playing(){}}fnmain(){play_file("res/shots2.ogg");play_file("res/explosion.wav");}