AEC3: Audibility: improvements on the initial noise estimation
Bug: webrtc:9193,chromium:836790 Change-Id: I589082a18a4a5d1ba5abc170b6cf49d1f545b6cc Reviewed-on: https://webrtc-review.googlesource.com/72480 Reviewed-by: Per Åhgren <peah@webrtc.org> Commit-Queue: Per Åhgren <peah@webrtc.org> Cr-Commit-Position: refs/heads/master@{#23027}
This commit is contained in:
committed by
Commit Bot
parent
ff61273c01
commit
dc872b6be1
@ -34,7 +34,8 @@ class EchoAudibility {
|
||||
// Feed new render data to the echo audibility estimator.
|
||||
void Update(const RenderBuffer& render_buffer,
|
||||
size_t delay_blocks,
|
||||
size_t capture_block_counter_);
|
||||
size_t capture_block_counter_,
|
||||
bool external_delay_seen);
|
||||
|
||||
// Get the residual echo scaling.
|
||||
void GetResidualEchoScaling(rtc::ArrayView<float> residual_scaling) const {
|
||||
@ -53,6 +54,15 @@ class EchoAudibility {
|
||||
|
||||
// Compute the residual scaling per frequency for the current frame.
|
||||
void ComputeResidualScaling();
|
||||
|
||||
void UpdateAfterStableDelay(const RenderBuffer& render_buffer,
|
||||
size_t delay_blocks,
|
||||
size_t capture_block_counter);
|
||||
|
||||
void UpdateBeforeStableDelay(const RenderBuffer& render_buffer);
|
||||
|
||||
bool first_update_ = true;
|
||||
int render_write_prev_;
|
||||
StationarityEstimator render_stationarity_;
|
||||
RTC_DISALLOW_COPY_AND_ASSIGN(EchoAudibility);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user