Function discord::voice::create_pcm_source
[−]
[src]
pub fn create_pcm_source<R: Read + Send + 'static>(
stereo: bool,
read: R
) -> Box<AudioSource>
Create an audio source based on a pcm_s16le
input stream.
The input data should be in signed 16-bit little-endian PCM input stream at 48000Hz. If
stereo
is true, the channels should be interleaved, left first.