From 4094c49ddf63b1afe3adffc91860992a3acca35f Mon Sep 17 00:00:00 2001 From: "perkj@google.com" Date: Mon, 29 Aug 2011 07:36:28 +0000 Subject: [PATCH] Temporarily use digital AGC in WebRTC since Chromium can't support analog AGC. Fix suggested by henrika. Review URL: http://webrtc-codereview.appspot.com/121001 git-svn-id: http://webrtc.googlecode.com/svn/trunk@476 4adac7df-926f-26a2-2b94-8c16560cd09d --- .../source/talk/session/phone/webrtcvoiceengine.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/third_party_mods/libjingle/source/talk/session/phone/webrtcvoiceengine.cc b/third_party_mods/libjingle/source/talk/session/phone/webrtcvoiceengine.cc index aa0bacb353..f67404aeca 100644 --- a/third_party_mods/libjingle/source/talk/session/phone/webrtcvoiceengine.cc +++ b/third_party_mods/libjingle/source/talk/session/phone/webrtcvoiceengine.cc @@ -449,8 +449,12 @@ bool WebRtcVoiceEngine::SetOptions(int options) { LOG_RTCERR1(SetEcStatus, aec); return false; } + // TODO (perkj): + // This sets the AGC to use digital AGC since analog AGC can't be supported on + // Chromium at the moment. Change back to analog when it can. + if (voe_wrapper_->processing()->SetAgcStatus( + agc, webrtc::kAgcAdaptiveDigital) == -1) { - if (voe_wrapper_->processing()->SetAgcStatus(agc) == -1) { LOG_RTCERR1(SetAgcStatus, agc); return false; }