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

Unified Diff: webrtc/modules/audio_processing/aec/aec_core.c

Issue 1700703005: Boilerplate code addition in order to be able to test upcoming AEC additions (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Merge from master Created 4 years, 10 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/aec/aec_core.c
diff --git a/webrtc/modules/audio_processing/aec/aec_core.c b/webrtc/modules/audio_processing/aec/aec_core.c
index f80a7da48a3fd3eb0eb4d8283737ad4951561978..76a33cec165e373530641fd7085e80813481834d 100644
--- a/webrtc/modules/audio_processing/aec/aec_core.c
+++ b/webrtc/modules/audio_processing/aec/aec_core.c
@@ -1430,6 +1430,7 @@ AecCore* WebRtcAec_CreateAec() {
WebRtc_set_lookahead(aec->delay_estimator, kLookaheadBlocks);
#endif
aec->extended_filter_enabled = 0;
+ aec->next_generation_aec_enabled = 0;
// Assembly optimization
WebRtcAec_FilterFar = FilterFar;
@@ -1863,6 +1864,17 @@ int WebRtcAec_delay_agnostic_enabled(AecCore* self) {
return self->delay_agnostic_enabled;
}
+void WebRtcAec_enable_next_generation_aec(AecCore* self, int enable) {
+ self->next_generation_aec_enabled = (enable != 0);
+}
+
+int WebRtcAec_next_generation_aec_enabled(AecCore* self) {
+ assert(self->next_generation_aec_enabled == 0 ||
+ self->next_generation_aec_enabled == 1);
+ return self->next_generation_aec_enabled;
+}
+
+
void WebRtcAec_enable_extended_filter(AecCore* self, int enable) {
self->extended_filter_enabled = enable;
self->num_partitions = enable ? kExtendedNumPartitions : kNormalNumPartitions;
« no previous file with comments | « webrtc/modules/audio_processing/aec/aec_core.h ('k') | webrtc/modules/audio_processing/aec/aec_core_internal.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698