Function play

Source
pub fn play<R>(mixer: &Mixer, input: R) -> Result<Sink, PlayError>
where R: Read + Seek + Send + Sync + 'static,
Expand description

A convenience function. Plays a sound once. Returns a Sink that can be used to control the sound.