pub struct Detector<F, D>{ /* private fields */ }
Expand description
A type that can be used to detect the envelope of a signal.
Implementations§
Source§impl<F, D> Detector<F, D>
impl<F, D> Detector<F, D>
Sourcepub fn new(detect: D, attack_frames: f32, release_frames: f32) -> Self
pub fn new(detect: D, attack_frames: f32, release_frames: f32) -> Self
Construct a Detector with the given Detect implementation.
Sourcepub fn set_attack_frames(&mut self, frames: f32)
pub fn set_attack_frames(&mut self, frames: f32)
Set the Detector’s attack time as a number of frames.
Sourcepub fn set_release_frames(&mut self, frames: f32)
pub fn set_release_frames(&mut self, frames: f32)
Set the Detector’s release time as a number of frames.
Trait Implementations§
Auto Trait Implementations§
impl<F, D> Freeze for Detector<F, D>
impl<F, D> RefUnwindSafe for Detector<F, D>
impl<F, D> Send for Detector<F, D>
impl<F, D> Sync for Detector<F, D>
impl<F, D> Unpin for Detector<F, D>
impl<F, D> UnwindSafe for Detector<F, D>
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