pub struct GainControl {
pub mode: GainControlMode,
pub target_level_dbfs: i32,
pub compression_gain_db: i32,
pub enable_limiter: bool,
}
Expand description
Gain control configuration.
Fields§
§mode: GainControlMode
Determines what type of gain control is applied.
target_level_dbfs: i32
Sets the target peak level (or envelope) of the AGC in dBFs (decibels from digital full-scale). The convention is to use positive values. For instance, passing in a value of 3 corresponds to -3 dBFs, or a target level 3 dB below full-scale. Limited to [0, 31].
compression_gain_db: i32
Sets the maximum gain the digital compression stage may apply, in dB. A higher number corresponds to greater compression, while a value of 0 will leave the signal uncompressed. Limited to [0, 90].
enable_limiter: bool
When enabled, the compression stage will hard limit the signal to the target level. Otherwise, the signal will be compressed but not limited above the target level.
Trait Implementations§
Source§impl Clone for GainControl
impl Clone for GainControl
Source§fn clone(&self) -> GainControl
fn clone(&self) -> GainControl
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 GainControl
impl Debug for GainControl
Source§impl From<GainControl> for GainControl
impl From<GainControl> for GainControl
Source§fn from(other: GainControl) -> GainControl
fn from(other: GainControl) -> GainControl
Converts to this type from the input type.
Source§impl PartialEq for GainControl
impl PartialEq for GainControl
impl StructuralPartialEq for GainControl
Auto Trait Implementations§
impl Freeze for GainControl
impl RefUnwindSafe for GainControl
impl Send for GainControl
impl Sync for GainControl
impl Unpin for GainControl
impl UnwindSafe for GainControl
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