pub struct Compressor {
pub threshold_db: f32,
pub ratio: f32,
pub attack_coef: f32,
pub release_coef: f32,
pub makeup_gain: f32,
/* private fields */
}Expand description
RMS compressor for dynamic range control.
Fields§
§threshold_db: f32§ratio: f32§attack_coef: f32§release_coef: f32§makeup_gain: f32Implementations§
Source§impl Compressor
impl Compressor
pub fn new( threshold_db: f32, ratio: f32, attack_ms: f32, release_ms: f32, ) -> Self
pub fn tick(&mut self, frame: StereoFrame) -> StereoFrame
Trait Implementations§
Source§impl Clone for Compressor
impl Clone for Compressor
Source§fn clone(&self) -> Compressor
fn clone(&self) -> Compressor
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for Compressor
impl RefUnwindSafe for Compressor
impl Send for Compressor
impl Sync for Compressor
impl Unpin for Compressor
impl UnsafeUnpin for Compressor
impl UnwindSafe for Compressor
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