AEC3: Reseting the ERLE at pre-amplifier gain changes

In this CL the ERLE estimator is reset after a pre-amplifier gain change is communicated to APM.

Bug: webrtc:9805
Change-Id: I040f344e4607e862240250f9478d06de0d58a096
Reviewed-on: https://webrtc-review.googlesource.com/103222
Commit-Queue: Per Åhgren <peah@webrtc.org>
Reviewed-by: Jesus de Vicente Pena <devicentepena@webrtc.org>
Reviewed-by: Alex Loiko <aleloi@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#24933}
This commit is contained in:
Per Åhgren
2018-10-02 17:00:59 +02:00
committed by Commit Bot
parent b45bdb524c
commit d2650d1a28
5 changed files with 31 additions and 11 deletions

View File

@ -397,6 +397,7 @@ class AudioProcessingImpl : public AudioProcessing {
int split_rate;
bool echo_path_gain_change;
int prev_analog_mic_level;
float prev_pre_amp_gain;
} capture_ RTC_GUARDED_BY(crit_capture_);
struct ApmCaptureNonLockedState {