Function discord::voice::open_ffmpeg_stream [] [src]

pub fn open_ffmpeg_stream<P: AsRef<OsStr>>(path: P) -> Result<Box<AudioSource>>

Use ffmpeg to open an audio file as a PCM stream.

Requires ffmpeg to be on the path and executable. If ffprobe is available and indicates that the input file is stereo, the returned audio source will be stereo.