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

Unified Diff: webrtc/modules/audio_processing/audio_processing_impl.cc

Issue 2811283003: AEC3 Tuning changes (Closed)
Patch Set: Created 3 years, 8 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 | « webrtc/modules/audio_processing/aec3/aec_state.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/modules/audio_processing/audio_processing_impl.cc
diff --git a/webrtc/modules/audio_processing/audio_processing_impl.cc b/webrtc/modules/audio_processing/audio_processing_impl.cc
index af5e94b60293ba74d2524a2a9036cd88c2bdd6fa..816210f34f8738eb7a042adee69f87f5ed1a99d8 100644
--- a/webrtc/modules/audio_processing/audio_processing_impl.cc
+++ b/webrtc/modules/audio_processing/audio_processing_impl.cc
@@ -10,6 +10,7 @@
#include "webrtc/modules/audio_processing/audio_processing_impl.h"
+#include <math.h>
#include <algorithm>
#include "webrtc/base/checks.h"
@@ -1147,7 +1148,7 @@ int AudioProcessingImpl::ProcessCaptureStreamLocked() {
if (private_submodules_->echo_canceller3) {
const int new_agc_level = gain_control()->stream_analog_level();
capture_.echo_path_gain_change =
- (capture_.previous_agc_level != new_agc_level);
+ abs(capture_.previous_agc_level - new_agc_level) > 5;
capture_.previous_agc_level = new_agc_level;
private_submodules_->echo_canceller3->AnalyzeCapture(capture_buffer);
}
« no previous file with comments | « webrtc/modules/audio_processing/aec3/aec_state.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698