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

Unified Diff: webrtc/modules/audio_processing/echo_cancellation_impl.cc

Issue 1211053006: Rename APM Config ReportedDelay to DelayAgnostic (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Fix error in android test Created 5 years, 6 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/modules/audio_processing/echo_cancellation_impl.cc
diff --git a/webrtc/modules/audio_processing/echo_cancellation_impl.cc b/webrtc/modules/audio_processing/echo_cancellation_impl.cc
index dff47cca595891d78faae47a03b212f30e54d6f2..96e77c59639364800eb02768c357f570b66b43e1 100644
--- a/webrtc/modules/audio_processing/echo_cancellation_impl.cc
+++ b/webrtc/modules/audio_processing/echo_cancellation_impl.cc
@@ -68,7 +68,7 @@ EchoCancellationImpl::EchoCancellationImpl(const AudioProcessing* apm,
stream_has_echo_(false),
delay_logging_enabled_(false),
extended_filter_enabled_(false),
- reported_delay_enabled_(true) {
+ delay_agnostic_enabled_(false) {
}
EchoCancellationImpl::~EchoCancellationImpl() {}
@@ -329,7 +329,8 @@ int EchoCancellationImpl::Initialize() {
void EchoCancellationImpl::SetExtraOptions(const Config& config) {
extended_filter_enabled_ = config.Get<ExtendedFilter>().enabled;
- reported_delay_enabled_ = config.Get<ReportedDelay>().enabled;
+ delay_agnostic_enabled_ = config.Get<DelayAgnostic>().enabled ||
+ !config.Get<ReportedDelay>().enabled;
Configure();
}
@@ -363,8 +364,9 @@ int EchoCancellationImpl::ConfigureHandle(void* handle) const {
WebRtcAec_enable_extended_filter(
WebRtcAec_aec_core(static_cast<Handle*>(handle)),
extended_filter_enabled_ ? 1 : 0);
- WebRtcAec_enable_reported_delay(WebRtcAec_aec_core(
- static_cast<Handle*>(handle)), reported_delay_enabled_ ? 1 : 0);
+ WebRtcAec_enable_delay_agnostic(
+ WebRtcAec_aec_core(static_cast<Handle*>(handle)),
+ delay_agnostic_enabled_ ? 1 : 0);
return WebRtcAec_set_config(static_cast<Handle*>(handle), config);
}

Powered by Google App Engine
This is Rietveld 408576698