| 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) || \
|
| + (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) {
|
|
|