pub struct Biquad { /* private fields */ }Expand description
A biquad section over up to MAX_CHANNELS channels of i16.
Direct form I in f32: y = b0·x + b1·x1 + b2·x2 − a1·y1 − a2·y2; output
rounded ties-away and saturated. The design is redone when the input rate
changes.
Implementations§
Source§impl Biquad
impl Biquad
Sourcepub fn new(kind: BiquadKind) -> Self
pub fn new(kind: BiquadKind) -> Self
A section of kind; designed on the first block.
Sourcepub fn coefficients(&self) -> Coefficients
pub fn coefficients(&self) -> Coefficients
The coefficients in use (identity until the first block).
Trait Implementations§
Source§impl Element for Biquad
impl Element for Biquad
Source§fn output_format(&self, input: PcmFormat) -> Result<PcmFormat>
fn output_format(&self, input: PcmFormat) -> Result<PcmFormat>
The format this element emits for blocks in
input, or
Err(Unsupported) if it cannot take input at all.Auto Trait Implementations§
impl Freeze for Biquad
impl RefUnwindSafe for Biquad
impl Send for Biquad
impl Sync for Biquad
impl Unpin for Biquad
impl UnsafeUnpin for Biquad
impl UnwindSafe for Biquad
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