pub struct DcBlockerBlock<S: Sample> {
pub enabled: bool,
/* private fields */
}Expand description
A DC blocking filter that removes DC offset from audio signals.
Uses a first-order high-pass filter with approximately 5Hz cutoff.
Fields§
§enabled: boolWhether the DC blocker is enabled.
Implementations§
Source§impl<S: Sample> DcBlockerBlock<S>
impl<S: Sample> DcBlockerBlock<S>
Trait Implementations§
Source§impl<S: Sample> Block<S> for DcBlockerBlock<S>
impl<S: Sample> Block<S> for DcBlockerBlock<S>
Source§fn process(
&mut self,
inputs: &[&[S]],
outputs: &mut [&mut [S]],
_modulation_values: &[S],
_context: &DspContext,
)
fn process( &mut self, inputs: &[&[S]], outputs: &mut [&mut [S]], _modulation_values: &[S], _context: &DspContext, )
Process audio through this block. Read more
Source§fn input_count(&self) -> usize
fn input_count(&self) -> usize
Returns the number of input ports this block accepts.
Source§fn output_count(&self) -> usize
fn output_count(&self) -> usize
Returns the number of output ports this block produces.
Source§fn modulation_outputs(&self) -> &[ModulationOutput]
fn modulation_outputs(&self) -> &[ModulationOutput]
Returns the modulation outputs this block provides. Read more
Source§fn channel_config(&self) -> ChannelConfig
fn channel_config(&self) -> ChannelConfig
Returns how this block handles multi-channel audio. Read more
Source§impl<S: Sample> From<DcBlockerBlock<S>> for BlockType<S>
impl<S: Sample> From<DcBlockerBlock<S>> for BlockType<S>
Source§fn from(block: DcBlockerBlock<S>) -> Self
fn from(block: DcBlockerBlock<S>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<S> Freeze for DcBlockerBlock<S>
impl<S> RefUnwindSafe for DcBlockerBlock<S>where
S: RefUnwindSafe,
impl<S> Send for DcBlockerBlock<S>
impl<S> Sync for DcBlockerBlock<S>
impl<S> Unpin for DcBlockerBlock<S>where
S: Unpin,
impl<S> UnwindSafe for DcBlockerBlock<S>where
S: UnwindSafe,
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