pub struct DcBlock { /* private fields */ }Expand description
y[n] = x[n] - x[n-1] + r·y[n-1], per channel, in f32.
r = 1 - 2π·fc/fs; the default corner is 20 Hz. The response at fc is
−3 dB; above ~5·fc the gain is within 1 % of unity. State is two floats
per channel. Output is rounded (ties away from zero) and saturated.
Implementations§
Trait Implementations§
Source§impl Element for DcBlock
impl Element for DcBlock
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 DcBlock
impl RefUnwindSafe for DcBlock
impl Send for DcBlock
impl Sync for DcBlock
impl Unpin for DcBlock
impl UnsafeUnpin for DcBlock
impl UnwindSafe for DcBlock
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