pub struct Encoder(pub Audio);Tuple Fields§
§0: Audio实现§
Methods from Deref<Target = Audio>§
pub fn set_rate(&mut self, rate: i32)
pub fn rate(&self) -> u32
pub fn set_format(&mut self, value: Sample)
pub fn format(&self) -> Sample
pub fn set_channel_layout(&mut self, value: ChannelLayout)
pub fn channel_layout(&self) -> ChannelLayout
pub fn channels(&self) -> u16
Methods from Deref<Target = Super>§
pub fn send_frame(&mut self, frame: &Frame) -> Result<(), Error>
源代码pub fn send_eof(&mut self) -> Result<(), Error>
pub fn send_eof(&mut self) -> Result<(), Error>
Sends a NULL packet to the encoder to signal end of stream and enter draining mode.