pub struct Decoder { /* private fields */ }Expand description
MELPe 600 bps decoder.
Implementations§
Source§impl Decoder
impl Decoder
pub fn new() -> Self
Sourcepub fn decode(&mut self, bitstream: &[u8; 6], output: &mut [f32; 540])
pub fn decode(&mut self, bitstream: &[u8; 6], output: &mut [f32; 540])
Decode one superframe: 6 bytes → 540 samples.
bitstream must be exactly SUPERFRAME_BYTES_600 (6) bytes.
Writes SUPERFRAME_SAMPLES (540) samples to output.
Sourcepub fn is_initialized(&self) -> bool
pub fn is_initialized(&self) -> bool
Whether at least one superframe has been decoded.
Sourcepub fn prev_anchor_lsf(&self) -> &[f32; 10]
pub fn prev_anchor_lsf(&self) -> &[f32; 10]
Previous anchor LSFs (for debugging/testing).
Auto Trait Implementations§
impl Freeze for Decoder
impl RefUnwindSafe for Decoder
impl Send for Decoder
impl Sync for Decoder
impl Unpin 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