pub struct FdnReverb { /* private fields */ }Expand description
4×4 feedback delay network reverb with Hadamard mixing.
Implementations§
Source§impl FdnReverb
impl FdnReverb
Sourcepub fn new(
sample_rate: u32,
decay: f32,
damping: f32,
wet: f32,
dry: f32,
) -> Result<Self, AudioError>
pub fn new( sample_rate: u32, decay: f32, damping: f32, wet: f32, dry: f32, ) -> Result<Self, AudioError>
Construct for sample_rate. decay in [0, 1) (tail length), damping
in [0, 1), plus wet/dry linear mix. Allocates all four delay lines once.
Sourcepub fn set_damping(&mut self, damping: f32)
pub fn set_damping(&mut self, damping: f32)
Live-update damping. Clamped to [0, 1).
Sourcepub fn process_sample(&mut self, input: f32) -> f32
pub fn process_sample(&mut self, input: f32) -> f32
Process one sample. Zero-alloc, no locks.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FdnReverb
impl RefUnwindSafe for FdnReverb
impl Send for FdnReverb
impl Sync for FdnReverb
impl Unpin for FdnReverb
impl UnsafeUnpin for FdnReverb
impl UnwindSafe for FdnReverb
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