pub struct AutomaticGainControlSettings {
pub target_level: Float,
pub attack_time: Duration,
pub release_time: Duration,
pub absolute_max_gain: Float,
}Expand description
Settings for the Automatic Gain Control (AGC).
This struct contains parameters that define how the AGC will function, allowing users to customise its behaviour.
Fields§
§target_level: FloatThe desired output level that the AGC tries to maintain. A value of 1.0 means no change to the original level.
attack_time: DurationTime constant for gain increases (how quickly the AGC responds to level increases). Longer durations result in slower, more gradual gain increases.
release_time: DurationTime constant for gain decreases (how quickly the AGC responds to level decreases). Shorter durations allow for faster response to sudden loud signals.
absolute_max_gain: FloatMaximum allowable gain multiplication to prevent excessive amplification. This acts as a safety limit to avoid distortion from over-amplification.
Trait Implementations§
Source§impl Clone for AutomaticGainControlSettings
impl Clone for AutomaticGainControlSettings
Source§fn clone(&self) -> AutomaticGainControlSettings
fn clone(&self) -> AutomaticGainControlSettings
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 moreSource§impl Debug for AutomaticGainControlSettings
impl Debug for AutomaticGainControlSettings
Auto Trait Implementations§
impl Freeze for AutomaticGainControlSettings
impl RefUnwindSafe for AutomaticGainControlSettings
impl Send for AutomaticGainControlSettings
impl Sync for AutomaticGainControlSettings
impl Unpin for AutomaticGainControlSettings
impl UnsafeUnpin for AutomaticGainControlSettings
impl UnwindSafe for AutomaticGainControlSettings
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