pub struct FilterState {
kind: FilterKind,
sr: f32,
dsp: Dsp,
}Expand description
Per-filter DSP state (biquad histories, delay lines, envelopes).
Fields§
§kind: FilterKind§sr: f32§dsp: DspImplementations§
Source§impl FilterState
impl FilterState
pub fn new(f: &AudioFilter, sample_rate: u32) -> Self
Sourcepub fn kind(&self) -> FilterKind
pub fn kind(&self) -> FilterKind
The kind this state was built for — the graph rebuilds when the user changes a slot’s filter.
Sourcepub fn process(&mut self, f: &AudioFilter, t: f64, buf: &mut [f32])
pub fn process(&mut self, f: &AudioFilter, t: f64, buf: &mut [f32])
Process one block in place. t = timeline seconds at the block start (keyframed params).
Auto Trait Implementations§
impl Freeze for FilterState
impl RefUnwindSafe for FilterState
impl Send for FilterState
impl Sync for FilterState
impl Unpin for FilterState
impl UnwindSafe for FilterState
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
§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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