pub struct Decoder { /* private fields */ }Expand description
Streaming AEC decoder (Rust-idiomatic, modeled after libaec’s aec_stream).
This type allows chunked input and chunked output:
- call
Decoder::push_inputto append more bytes - call
Decoder::decodeto write decoded bytes into a caller buffer
Notes:
- Output is packed sample bytes (same as [
decode_into]). - You must know
output_samplesup front (same as one-shot API).
Implementations§
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