pub struct BiquadState { /* private fields */ }Expand description
Running filter state (two-tap history). Direct Form I — one instance per mono channel. Zero-heap: all state lives inline on the stack.
Implementations§
Source§impl BiquadState
impl BiquadState
Sourcepub fn process_sample(&mut self, c: &BiquadCoeffs, x: f32) -> f32
pub fn process_sample(&mut self, c: &BiquadCoeffs, x: f32) -> f32
Process one sample; advances history. No allocation.
Sourcepub fn process(
&mut self,
c: &BiquadCoeffs,
x: &[f32],
out: &mut [f32],
) -> Result<(), AudioError>
pub fn process( &mut self, c: &BiquadCoeffs, x: &[f32], out: &mut [f32], ) -> Result<(), AudioError>
Process a whole block into a caller-supplied output buffer.
out must be at least as long as x; extra out slots are untouched.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BiquadState
impl RefUnwindSafe for BiquadState
impl Send for BiquadState
impl Sync for BiquadState
impl Unpin for BiquadState
impl UnsafeUnpin for BiquadState
impl UnwindSafe for BiquadState
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