pub struct AgcConfig {
pub target_dbfs: f32,
pub max_gain_db: f32,
pub min_gain_db: f32,
pub attack_db_per_s: f32,
pub release_db_per_s: f32,
pub noise_floor_dbfs: f32,
}Expand description
How the AGC behaves.
Fields§
§target_dbfs: f32Level the output settles to, in dBFS (RMS).
max_gain_db: f32The gain never exceeds this many dB.
min_gain_db: f32The gain never goes below this many dB (negative = allowed to attenuate).
attack_db_per_s: f32How fast the gain comes DOWN when the input is too loud, in dB per second.
release_db_per_s: f32How fast the gain goes UP when the input is too quiet, in dB per second.
noise_floor_dbfs: f32Below this input level the gain is frozen, so silence and room noise are not pumped up to the target.
Implementations§
Trait Implementations§
impl Copy for AgcConfig
impl StructuralPartialEq for AgcConfig
Auto Trait Implementations§
impl Freeze for AgcConfig
impl RefUnwindSafe for AgcConfig
impl Send for AgcConfig
impl Sync for AgcConfig
impl Unpin for AgcConfig
impl UnsafeUnpin for AgcConfig
impl UnwindSafe for AgcConfig
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