| Index: webrtc/modules/audio_processing/agc/agc_manager_direct.cc
|
| diff --git a/webrtc/modules/audio_processing/agc/agc_manager_direct.cc b/webrtc/modules/audio_processing/agc/agc_manager_direct.cc
|
| index dc9ba42d5123eac6f4f1c9276965bb37d09fdf9b..f8fc310c57569aa28dab3a1d440bcc09292f72e7 100644
|
| --- a/webrtc/modules/audio_processing/agc/agc_manager_direct.cc
|
| +++ b/webrtc/modules/audio_processing/agc/agc_manager_direct.cc
|
| @@ -407,7 +407,12 @@ void AgcManagerDirect::UpdateGain() {
|
| if (residual_gain == 0)
|
| return;
|
|
|
| + int old_level = level_;
|
| SetLevel(LevelFromGainError(residual_gain, level_));
|
| + if (old_level != level_) {
|
| + // level_ was updated by SetLevel; log the new value.
|
| + RTC_HISTOGRAM_ENUMERATION("WebRTC.Audio.AgcLevel", level_, kMaxMicLevel);
|
| + }
|
| }
|
|
|
| void AgcManagerDirect::UpdateCompressor() {
|
|
|