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

Unified Diff: webrtc/media/engine/webrtcvoiceengine.cc

Issue 2272423003: Deactivated the intelligibility enhancement functionality by default (Closed)
Patch Set: Put conditional building on the intelligibility_proc executable Created 4 years, 4 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
Index: webrtc/media/engine/webrtcvoiceengine.cc
diff --git a/webrtc/media/engine/webrtcvoiceengine.cc b/webrtc/media/engine/webrtcvoiceengine.cc
index a61b8c42844efe67dc7109534080b9036a26a62b..d0ca9aea617322719caf5cf0184c92128e25cb07 100644
--- a/webrtc/media/engine/webrtcvoiceengine.cc
+++ b/webrtc/media/engine/webrtcvoiceengine.cc
@@ -64,6 +64,14 @@ const int kDefaultAudioDeviceId = 0;
constexpr int kNackRtpHistoryMs = 5000;
+// Check to verify that the define for the intelligibility enhancer is properly
+// set.
+#if !defined(WEBRTC_INTELLIGIBILITY_ENHANCER) || \
the sun 2016/08/26 12:08:56 Why not just #if WEBRTC_INTELLIGIBILITY_ENHANCER ?
kjellander_webrtc 2016/08/26 12:52:01 I think there was a similar discussion for an AEC
peah-webrtc 2016/08/26 13:09:43 The reason was it is up to the build system to dis
peah-webrtc 2016/08/26 13:09:43 The reason behind that is that this is a define th
the sun 2016/08/26 13:17:48 Does it have to be like that then? Could it be set
+ (WEBRTC_INTELLIGIBILITY_ENHANCER != 0 && \
+ WEBRTC_INTELLIGIBILITY_ENHANCER != 1)
+#error "Set WEBRTC_INTELLIGIBILITY_ENHANCER to either 0 or 1"
+#endif
+
// Codec parameters for Opus.
// draft-spittka-payload-rtp-opus-03
@@ -649,6 +657,11 @@ bool WebRtcVoiceEngine::ApplyOptions(const AudioOptions& options_in) {
}
#endif
+#if (WEBRTC_INTELLIGIBILITY_ENHANCER == 0)
+ // Hardcode the intelligibility enhancer to be off.
+ options.intelligibility_enhancer = rtc::Optional<bool>(false);
+#endif
+
webrtc::VoEAudioProcessing* voep = voe_wrapper_->processing();
if (options.echo_cancellation) {
« no previous file with comments | « webrtc/media/BUILD.gn ('k') | webrtc/media/media.gyp » ('j') | webrtc/media/media.gyp » ('J')

Powered by Google App Engine
This is Rietveld 408576698