From 4905f068781cec64307bedcb36351da4f8c119b2 Mon Sep 17 00:00:00 2001 From: peah Date: Mon, 22 Aug 2016 01:58:50 -0700 Subject: [PATCH] Disable the software noise suppressor on iOS devices as that functionality is always present in the hardware. BUG=webrtc:6231 Review-Url: https://codereview.webrtc.org/2260173002 Cr-Commit-Position: refs/heads/master@{#13839} --- webrtc/media/engine/webrtcvoiceengine.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/webrtc/media/engine/webrtcvoiceengine.cc b/webrtc/media/engine/webrtcvoiceengine.cc index eb8399494c..c7fd768913 100644 --- a/webrtc/media/engine/webrtcvoiceengine.cc +++ b/webrtc/media/engine/webrtcvoiceengine.cc @@ -615,10 +615,12 @@ bool WebRtcVoiceEngine::ApplyOptions(const AudioOptions& options_in) { } #if defined(WEBRTC_IOS) - // On iOS, VPIO provides built-in EC and AGC. + // On iOS, VPIO provides built-in EC, NS and AGC. options.echo_cancellation = rtc::Optional(false); options.auto_gain_control = rtc::Optional(false); - LOG(LS_INFO) << "Always disable AEC and AGC on iOS. Use built-in instead."; + options.noise_suppression = rtc::Optional(false); + LOG(LS_INFO) + << "Always disable AEC, NS and AGC on iOS. Use built-in instead."; #elif defined(ANDROID) ec_mode = webrtc::kEcAecm; #endif