#[repr(u32)]pub enum GainControl_Mode {
ADAPTIVE_ANALOG = 0,
ADAPTIVE_DIGITAL = 1,
FIXED_DIGITAL = 2,
}
Expand description
Mode of gain control.
Variants§
ADAPTIVE_ANALOG = 0
Not supported yet.
TODO(skywhale): Expose set_stream_analog_level() and
stream_analog_level().ADAPTIVE_DIGITAL = 1
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.
FIXED_DIGITAL = 2
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 GainControl_Mode
impl Clone for GainControl_Mode
Source§fn clone(&self) -> GainControl_Mode
fn clone(&self) -> GainControl_Mode
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_Mode
impl Debug for GainControl_Mode
Source§impl Hash for GainControl_Mode
impl Hash for GainControl_Mode
Source§impl PartialEq for GainControl_Mode
impl PartialEq for GainControl_Mode
impl Copy for GainControl_Mode
impl Eq for GainControl_Mode
impl StructuralPartialEq for GainControl_Mode
Auto Trait Implementations§
impl Freeze for GainControl_Mode
impl RefUnwindSafe for GainControl_Mode
impl Send for GainControl_Mode
impl Sync for GainControl_Mode
impl Unpin for GainControl_Mode
impl UnwindSafe for GainControl_Mode
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