pub struct CompressorSettings {
pub threshold_db: f32,
pub ratio: f32,
pub knee_db: f32,
pub makeup_db: f32,
pub attack_ms: f32,
pub release_ms: f32,
pub lookahead_ms: f32,
pub detector: Detector,
pub detector_filter: Option<DetectorFilter>,
}Expand description
What a Compressor is built from. Invalid values are replaced by conservative defaults
and the rest clamped to what renders.
Fields§
§threshold_db: f32Level above which gain reduction begins, in decibels from -96 to 0.
ratio: f32Downward ratio, from 1 to MAX_RATIO.
knee_db: f32Width of the knee centred on the threshold, in decibels up to MAX_KNEE_DB; 0 is a
hard knee.
makeup_db: f32Gain applied after the reduction, in decibels up to MAX_MAKEUP_DB either way.
attack_ms: f32Attack time in milliseconds.
release_ms: f32Release time in milliseconds.
lookahead_ms: f32Lookahead in milliseconds, up to 100; the compressor’s latency.
detector: DetectorHow the level is measured.
detector_filter: Option<DetectorFilter>A filter before the detector.
Implementations§
Trait Implementations§
Source§impl Clone for CompressorSettings
impl Clone for CompressorSettings
impl Copy for CompressorSettings
Source§impl Debug for CompressorSettings
impl Debug for CompressorSettings
Source§impl PartialEq for CompressorSettings
impl PartialEq for CompressorSettings
impl StructuralPartialEq for CompressorSettings
Auto Trait Implementations§
impl Forget for CompressorSettings
impl Freeze for CompressorSettings
impl Move for CompressorSettings
impl RefUnwindSafe for CompressorSettings
impl Send for CompressorSettings
impl Sync for CompressorSettings
impl Unpin for CompressorSettings
impl UnsafeUnpin for CompressorSettings
impl UnwindSafe for CompressorSettings
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