[][src]Struct webrtc_audio_processing_sys::GainControl

#[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,
}
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

impl Clone for GainControl[src]

impl Copy for GainControl[src]

impl Debug for GainControl[src]

impl Default for GainControl[src]

impl PartialEq<GainControl> for GainControl[src]

impl StructuralPartialEq for GainControl[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.