pub struct Audio(pub Opened);Tuple Fields§
§0: Opened实现§
源代码§impl Audio
impl Audio
pub fn rate(&self) -> u32
pub fn channels(&self) -> u16
pub fn format(&self) -> Sample
pub fn request_format(&mut self, value: Sample)
pub fn frames(&self) -> usize
pub fn align(&self) -> usize
pub fn channel_layout(&self) -> ChannelLayout
pub fn set_channel_layout(&mut self, value: ChannelLayout)
pub fn audio_service(&mut self) -> AudioService
pub fn max_bit_rate(&self) -> usize
pub fn frame_size(&self) -> u32
Methods from Deref<Target = Opened>§
pub fn send_packet<P: Ref>(&mut self, packet: &P) -> Result<(), Error>
源代码pub fn send_eof(&mut self) -> Result<(), Error>
pub fn send_eof(&mut self) -> Result<(), Error>
Sends a NULL packet to the decoder to signal end of stream and enter draining mode.