#[repr(C)]pub struct EchoCancellation {
pub enable: bool,
pub suppression_level: EchoCancellation_SuppressionLevel,
pub enable_extended_filter: bool,
pub enable_delay_agnostic: bool,
pub stream_delay_ms: OptionalInt,
}Expand description
Echo cancellation configuration.
Fields§
§enable: boolWhether to use echo cancellation.
suppression_level: EchoCancellation_SuppressionLevel
Determines the aggressiveness of the suppressor. A higher level trades off
double-talk performance for increased echo suppression.
enable_extended_filter: bool
Use to enable the extended filter mode in the AEC, along with robustness
measures around the reported system delays. It comes with a significant
increase in AEC complexity, but is much more robust to unreliable reported
delays.
enable_delay_agnostic: bool
Enables delay-agnostic echo cancellation. This feature relies on internally
estimated delays between the process and reverse streams, thus not relying
on reported system delays.
stream_delay_ms: OptionalInt
Sets the delay in ms between process_render_frame() receiving a far-end
frame and process_capture_frame() receiving a near-end frame containing
the corresponding echo. You should set this only if you are certain that
the delay will be stable and constant. enable_delay_agnostic will be
ignored when this option is set.
Trait Implementations§
Source§impl Clone for EchoCancellation
impl Clone for EchoCancellation
Source§fn clone(&self) -> EchoCancellation
fn clone(&self) -> EchoCancellation
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 EchoCancellation
impl Debug for EchoCancellation
Source§impl Default for EchoCancellation
impl Default for EchoCancellation
Source§impl PartialEq for EchoCancellation
impl PartialEq for EchoCancellation
impl Copy for EchoCancellation
impl StructuralPartialEq for EchoCancellation
Auto Trait Implementations§
impl Freeze for EchoCancellation
impl RefUnwindSafe for EchoCancellation
impl Send for EchoCancellation
impl Sync for EchoCancellation
impl Unpin for EchoCancellation
impl UnwindSafe for EchoCancellation
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