#[non_exhaustive]pub enum HighpassFilter {
Hz80,
Hz100,
}Expand description
High-pass filter selector for the capture chain.
A closed, #[non_exhaustive] set that is intentionally designed to grow:
today the values are HighpassFilter::Hz80 (an 80 Hz second-order
Butterworth high-pass, the conventional voice rumble cutoff) and
HighpassFilter::Hz100 (a 100 Hz second-order Butterworth, the more
aggressive rumble cut). Both remove low-frequency rumble below the voice
band. Naming the cutoff rather than taking a bool or a free integer keeps
adding further cutoffs (a 300 Hz telephony cut, say) a non-breaking
widening (a new variant), and keeps the caller on record about which cutoff
they selected. The closed named set is deliberate: members are added without
a breaking change, the way DenoiseModel grows. The filter is pure DSP, so
it bundles no file and loads no runtime.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Hz80
An 80 Hz second-order Butterworth high-pass, the conventional voice rumble cutoff.
Hz100
A 100 Hz second-order Butterworth high-pass, a more aggressive rumble
cut than HighpassFilter::Hz80.
Trait Implementations§
Source§impl Clone for HighpassFilter
impl Clone for HighpassFilter
Source§fn clone(&self) -> HighpassFilter
fn clone(&self) -> HighpassFilter
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for HighpassFilter
Source§impl Debug for HighpassFilter
impl Debug for HighpassFilter
impl Eq for HighpassFilter
Source§impl PartialEq for HighpassFilter
impl PartialEq for HighpassFilter
Source§fn eq(&self, other: &HighpassFilter) -> bool
fn eq(&self, other: &HighpassFilter) -> bool
self and other values to be equal, and is used by ==.