#[repr(C)]pub struct GainControl {
pub enable: bool,
pub mode: GainControl_Mode,
pub target_level_dbfs: c_int,
pub compression_gain_db: c_int,
pub enable_limiter: bool,
}
Expand description
Gain control configuration.
Fields§
§enable: bool
Whether to use gain control.
mode: GainControl_Mode
Determines what type of gain control is applied.
target_level_dbfs: c_int
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: c_int
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 Default for GainControl
impl Default for GainControl
Source§impl PartialEq for GainControl
impl PartialEq for GainControl
impl Copy 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