Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1781)

Unified Diff: webrtc/modules/audio_processing/aec3/suppression_gain.cc

Issue 2969943002: Improved low-level echo handling in echo canceller 3 (Closed)
Patch Set: Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/modules/audio_processing/aec3/suppression_gain.cc
diff --git a/webrtc/modules/audio_processing/aec3/suppression_gain.cc b/webrtc/modules/audio_processing/aec3/suppression_gain.cc
index 7455d29e165aa07dadceb8427d689042ec2cf1be..af1e7186077f46aca847b57c99bd057b204f5ac7 100644
--- a/webrtc/modules/audio_processing/aec3/suppression_gain.cc
+++ b/webrtc/modules/audio_processing/aec3/suppression_gain.cc
@@ -158,7 +158,7 @@ void GainToNoAudibleEcho(
std::array<float, kFftLengthBy2Plus1>* gain) {
constexpr float kEchoMaskingMargin = 1.f / 100.f;
const float nearend_masking_margin =
- low_noise_render ? 2.f : (saturated_echo ? 0.001f : 0.01f);
+ low_noise_render ? 0.1f : (saturated_echo ? 0.001f : 0.01f);
for (size_t k = 0; k < gain->size(); ++k) {
RTC_DCHECK_LE(0.f, nearend_masking_margin * nearend[k]);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698