pub struct WmaDecoder { /* private fields */ }Expand description
Direct translation of upstream WMACodecContext for WMAv1/2.
Implementations§
Source§impl WmaDecoder
impl WmaDecoder
pub fn new(info: &AudioStreamInfo) -> Result<Self>
pub fn sample_rate(&self) -> u32
pub fn channels(&self) -> u16
pub fn frame_len(&self) -> usize
Sourcepub fn decode_packet(
&mut self,
pkt: &[u8],
pts_ms: u32,
) -> Result<Option<PcmFrameF32>>
pub fn decode_packet( &mut self, pkt: &[u8], pts_ms: u32, ) -> Result<Option<PcmFrameF32>>
Decode one ASF packet payload (usually block_align bytes).
Auto Trait Implementations§
impl Freeze for WmaDecoder
impl RefUnwindSafe for WmaDecoder
impl Send for WmaDecoder
impl Sync for WmaDecoder
impl Unpin for WmaDecoder
impl UnwindSafe for WmaDecoder
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