Function rodio::play_once
[−]
[src]
pub fn play_once<R>(endpoint: &Endpoint, input: R) -> Result<Sink, DecoderError> where
R: Read + Seek + Send + 'static,
Plays a sound once. Returns a Sink
that can be used to control the sound.