pub struct BlockProcessor { /* private fields */ }Expand description
Block-level echo cancellation processor.
Implementations§
Source§impl BlockProcessor
impl BlockProcessor
pub fn new( config: &EchoCanceller3Config, sample_rate_hz: usize, num_render_channels: usize, num_capture_channels: usize, ) -> Self
Sourcepub fn with_backend(
backend: SimdBackend,
config: &EchoCanceller3Config,
sample_rate_hz: usize,
num_render_channels: usize,
num_capture_channels: usize,
) -> Self
pub fn with_backend( backend: SimdBackend, config: &EchoCanceller3Config, sample_rate_hz: usize, num_render_channels: usize, num_capture_channels: usize, ) -> Self
Creates a new block processor with an explicit SIMD backend.
Sourcepub fn get_metrics(&self) -> BlockProcessorMetricsOutput
pub fn get_metrics(&self) -> BlockProcessorMetricsOutput
Returns current echo cancellation metrics.
Sourcepub fn set_audio_buffer_delay(&mut self, delay_ms: i32)
pub fn set_audio_buffer_delay(&mut self, delay_ms: i32)
Provides an optional external estimate of the audio buffer delay.
Sourcepub fn process_capture(
&mut self,
echo_path_gain_change: bool,
capture_signal_saturation: bool,
linear_output: Option<&mut Block>,
capture_block: &mut Block,
)
pub fn process_capture( &mut self, echo_path_gain_change: bool, capture_signal_saturation: bool, linear_output: Option<&mut Block>, capture_block: &mut Block, )
Processes a block of capture data.
Sourcepub fn buffer_render(&mut self, block: &Block)
pub fn buffer_render(&mut self, block: &Block)
Buffers a block of render data.
Sourcepub fn update_echo_leakage_status(&mut self, leakage_detected: bool)
pub fn update_echo_leakage_status(&mut self, leakage_detected: bool)
Reports whether echo leakage has been detected.
Sourcepub fn set_capture_output_usage(&mut self, capture_output_used: bool)
pub fn set_capture_output_usage(&mut self, capture_output_used: bool)
Specifies whether the capture output will be used.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BlockProcessor
impl RefUnwindSafe for BlockProcessor
impl Send for BlockProcessor
impl Sync for BlockProcessor
impl Unpin for BlockProcessor
impl UnwindSafe for BlockProcessor
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