Struct vitalium_verb_dsp::Reverb
source · pub struct Reverb { /* private fields */ }
Expand description
Implementations§
source§impl Reverb
impl Reverb
sourcepub fn tail_samples(&self, decay_seconds: f32) -> u32
pub fn tail_samples(&self, decay_seconds: f32) -> u32
Returns the estimated length of the reverb tail in units of samples.
sourcepub fn process(
&mut self,
left: &mut [f32],
right: &mut [f32],
params: &ReverbParams
)
pub fn process( &mut self, left: &mut [f32], right: &mut [f32], params: &ReverbParams )
Process the given buffers with the given parameters.
Note, parameters are only linearly smoothed over a maximum 128 frame period. If you want more smoothing than that, call this method multiple times in chunks of 128 frames.
§Panics
This will panic if:
- The
left
andright
buffers are not the same length Reverb::init()
has not been called at-least once
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Reverb
impl RefUnwindSafe for Reverb
impl Send for Reverb
impl Sync for Reverb
impl Unpin for Reverb
impl UnwindSafe for Reverb
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