pub struct MultiChannelBiQuad { /* private fields */ }
Expand description
A multi-channel bi-quad audio filter.
Supports single pole low pass filter and two pole low pass, high pass
and band pass filters. For more information please see the FilterType
documentation.
Uses the biquad
crate for signal processing.
Implementations§
Source§impl MultiChannelBiQuad
impl MultiChannelBiQuad
Sourcepub fn new(
channels: usize,
fil_type: FilterType,
freq: f32,
sample_rate: f32,
q: Option<f32>,
) -> Self
pub fn new( channels: usize, fil_type: FilterType, freq: f32, sample_rate: f32, q: Option<f32>, ) -> Self
Creates a new audio filter with the given parameters.
channels
: Number of audio channelsfil_type
: Type of the audio filter. See FilterType docsfreq
: Cutoff frequencysample_rate
: Sample rate of the audio to be processedq
: The Q parameter of the cutoff filter. Use None for the default Butterworth value.
Sourcepub fn set_filter_type(
&mut self,
fil_type: FilterType,
freq: f32,
q: Option<f32>,
)
pub fn set_filter_type( &mut self, fil_type: FilterType, freq: f32, q: Option<f32>, )
Changes the type of the audio filter.
Auto Trait Implementations§
impl Freeze for MultiChannelBiQuad
impl RefUnwindSafe for MultiChannelBiQuad
impl Send for MultiChannelBiQuad
impl Sync for MultiChannelBiQuad
impl Unpin for MultiChannelBiQuad
impl UnwindSafe for MultiChannelBiQuad
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more