pub struct Decoder { /* private fields */ }Implementations§
Source§impl Decoder
impl Decoder
pub fn new(transport: Transport) -> Self
pub fn config_raw( &mut self, audio_specic_config: &[u8], ) -> Result<(), DecoderError>
pub fn set_min_output_channels( &mut self, channels: usize, ) -> Result<(), DecoderError>
pub fn set_max_output_channels( &mut self, channels: usize, ) -> Result<(), DecoderError>
pub fn fill(&mut self, data: &[u8]) -> Result<usize, DecoderError>
pub fn decode_frame(&mut self, pcm: &mut [i16]) -> Result<(), DecoderError>
pub fn decoded_frame_size(&self) -> usize
pub fn stream_info(&self) -> &StreamInfo
Trait Implementations§
impl Send for Decoder
impl Sync for Decoder
Auto Trait Implementations§
impl Freeze for Decoder
impl RefUnwindSafe for Decoder
impl Unpin for Decoder
impl UnsafeUnpin for Decoder
impl UnwindSafe for Decoder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more