[−][src]Trait serenity::voice::AudioSource
A readable audio source.
Required methods
#[must_use]fn is_stereo<'life0, 'async_trait>(
&'life0 mut self
) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
&'life0 mut self
) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
#[must_use]fn get_type<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = AudioType> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
&'life0 self
) -> Pin<Box<dyn Future<Output = AudioType> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
#[must_use]fn read_pcm_frame<'life0, 'life1, 'async_trait>(
&'life0 mut self,
buffer: &'life1 mut [i16]
) -> Pin<Box<dyn Future<Output = Option<usize>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
&'life0 mut self,
buffer: &'life1 mut [i16]
) -> Pin<Box<dyn Future<Output = Option<usize>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
#[must_use]fn read_opus_frame<'life0, 'async_trait>(
&'life0 mut self
) -> Pin<Box<dyn Future<Output = Option<Vec<u8>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
&'life0 mut self
) -> Pin<Box<dyn Future<Output = Option<Vec<u8>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
#[must_use]fn decode_and_add_opus_frame<'life0, 'life1, 'async_trait>(
&'life0 mut self,
float_buffer: &'life1 mut [f32; 1920],
volume: f32
) -> Pin<Box<dyn Future<Output = Option<usize>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
&'life0 mut self,
float_buffer: &'life1 mut [f32; 1920],
volume: f32
) -> Pin<Box<dyn Future<Output = Option<usize>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,