pub enum GainControlMode {
AdaptiveDigital,
FixedDigital,
}
Expand description
Mode of gain control.
Variants§
AdaptiveDigital
Bring the signal to an appropriate range by applying an adaptive gain control. The volume is dynamically amplified with a microphone with small pickup and vice versa.
FixedDigital
Unlike ADAPTIVE_DIGITAL, it only compresses (i.e. gradually reduces gain with increasing level) the input signal when at higher levels. Use this where the capture signal level is predictable, so that a known gain can be applied.
Trait Implementations§
Source§impl Clone for GainControlMode
impl Clone for GainControlMode
Source§fn clone(&self) -> GainControlMode
fn clone(&self) -> GainControlMode
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 GainControlMode
impl Debug for GainControlMode
Source§impl From<GainControlMode> for GainControl_Mode
impl From<GainControlMode> for GainControl_Mode
Source§fn from(other: GainControlMode) -> GainControl_Mode
fn from(other: GainControlMode) -> GainControl_Mode
Converts to this type from the input type.
Source§impl PartialEq for GainControlMode
impl PartialEq for GainControlMode
impl Copy for GainControlMode
impl StructuralPartialEq for GainControlMode
Auto Trait Implementations§
impl Freeze for GainControlMode
impl RefUnwindSafe for GainControlMode
impl Send for GainControlMode
impl Sync for GainControlMode
impl Unpin for GainControlMode
impl UnwindSafe for GainControlMode
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