pub struct EncoderBuffers { /* private fields */ }Expand description
Per-stream encoder working buffers.
One instance per concurrent voice stream. Holds the sliding
pitch-estimation history, the LPF delay line, and the DC-removal
high-pass filter state. All are zero-initialized; the first frame
processed through a fresh EncoderBuffers will be quieter than
steady-state output while the history fills, but intelligibility
is unaffected (the same transient behavior the reference encoder
exhibits).
Implementations§
Source§impl EncoderBuffers
impl EncoderBuffers
Sourcepub fn shift_pitch_history(&mut self)
pub fn shift_pitch_history(&mut self)
Slide both pitch buffers left by FRAME samples to make room
for a new frame at the tail. Mirrors the first loop of Yazev’s
imbe_vocoder::encode().
Trait Implementations§
Source§impl Debug for EncoderBuffers
impl Debug for EncoderBuffers
Auto Trait Implementations§
impl Freeze for EncoderBuffers
impl RefUnwindSafe for EncoderBuffers
impl Send for EncoderBuffers
impl Sync for EncoderBuffers
impl Unpin for EncoderBuffers
impl UnwindSafe for EncoderBuffers
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