Trait serenity::voice::AudioSource[][src]

pub trait AudioSource: Send {
    fn is_stereo(&mut self) -> bool;
fn get_type(&self) -> AudioType;
fn read_pcm_frame(&mut self, buffer: &mut [i16]) -> Option<usize>;
fn read_opus_frame(&mut self) -> Option<Vec<u8>>; }

A readable audio source.

Required Methods

Implementors