pub struct Mp3Decoder { /* private fields */ }Implementations§
Source§impl Mp3Decoder
impl Mp3Decoder
Trait Implementations§
Source§impl AudioDecoder for Mp3Decoder
impl AudioDecoder for Mp3Decoder
Source§fn decode(
&mut self,
packet: &[u8],
pts: i64,
) -> Result<Vec<AudioFrame>, AudioError>
fn decode( &mut self, packet: &[u8], pts: i64, ) -> Result<Vec<AudioFrame>, AudioError>
Decode one input packet at the given PTS (microseconds). May
return zero or more output frames (zero is normal — some
decoders need to see two frames before emitting one).
Source§fn flush(&mut self) -> Result<Vec<AudioFrame>, AudioError>
fn flush(&mut self) -> Result<Vec<AudioFrame>, AudioError>
Drain any frames buffered inside the decoder. Call once at EOS.
Auto Trait Implementations§
impl Freeze for Mp3Decoder
impl RefUnwindSafe for Mp3Decoder
impl Send for Mp3Decoder
impl Sync for Mp3Decoder
impl Unpin for Mp3Decoder
impl UnsafeUnpin for Mp3Decoder
impl UnwindSafe for Mp3Decoder
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