pub struct AnalogGainController {
pub startup_min_volume: i32,
pub clipped_level_min: i32,
pub enable_digital_adaptive: bool,
pub clipped_level_step: i32,
pub clipped_ratio_threshold: f32,
pub clipped_wait_frames: i32,
pub clipping_predictor: Option<ClippingPredictor>,
}Expand description
Enables the analog gain controller functionality.
Fields§
§startup_min_volume: i32TODO(bugs.webrtc.org/7494): Will be deprecated.
clipped_level_min: i32Lowest analog microphone level that will be applied in response to clipping.
enable_digital_adaptive: boolIf true, an adaptive digital gain is applied.
clipped_level_step: i32Amount the microphone level is lowered with every clipping event. Limited to (0, 255].
clipped_ratio_threshold: f32Proportion of clipped samples required to declare a clipping event. Limited to (0.f, 1.f).
clipped_wait_frames: i32Time in frames to wait after a clipping event before checking again. Limited to values higher than 0.
clipping_predictor: Option<ClippingPredictor>Clipping predictor.
Trait Implementations§
Source§impl Clone for AnalogGainController
impl Clone for AnalogGainController
Source§fn clone(&self) -> AnalogGainController
fn clone(&self) -> AnalogGainController
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 AnalogGainController
impl Debug for AnalogGainController
Source§impl Default for AnalogGainController
impl Default for AnalogGainController
Source§impl<'de> Deserialize<'de> for AnalogGainControllerwhere
AnalogGainController: Default,
impl<'de> Deserialize<'de> for AnalogGainControllerwhere
AnalogGainController: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl JsonSchema for AnalogGainController
impl JsonSchema for AnalogGainController
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for AnalogGainController
impl PartialEq for AnalogGainController
Source§impl Serialize for AnalogGainController
impl Serialize for AnalogGainController
impl Copy for AnalogGainController
impl StructuralPartialEq for AnalogGainController
Auto Trait Implementations§
impl Freeze for AnalogGainController
impl RefUnwindSafe for AnalogGainController
impl Send for AnalogGainController
impl Sync for AnalogGainController
impl Unpin for AnalogGainController
impl UnsafeUnpin for AnalogGainController
impl UnwindSafe for AnalogGainController
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