Chromium Code Reviews| 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) { |