pub struct Limiter<T> {
pub min: T,
pub max: T,
}Expand description
Hard saturation limiter node clamping between [min, max].
Fields§
§min: T§max: TImplementations§
Trait Implementations§
impl<T: Copy> Copy for Limiter<T>
Source§impl<T: PartialOrd + Copy> DspNode<T> for Limiter<T>
impl<T: PartialOrd + Copy> DspNode<T> for Limiter<T>
Source§fn process_sample(&mut self, input: T) -> T
fn process_sample(&mut self, input: T) -> T
Process a single input sample and produce one output sample.
Source§fn process_block(&mut self, in_buf: &[T], out_buf: &mut [T])
fn process_block(&mut self, in_buf: &[T], out_buf: &mut [T])
Process a block of samples from
in_buf into out_buf.Source§fn process_in_place(&mut self, buf: &mut [T])
fn process_in_place(&mut self, buf: &mut [T])
Process a block of samples in place.
Auto Trait Implementations§
impl<T> Freeze for Limiter<T>where
T: Freeze,
impl<T> RefUnwindSafe for Limiter<T>where
T: RefUnwindSafe,
impl<T> Send for Limiter<T>where
T: Send,
impl<T> Sync for Limiter<T>where
T: Sync,
impl<T> Unpin for Limiter<T>where
T: Unpin,
impl<T> UnsafeUnpin for Limiter<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for Limiter<T>where
T: 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