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

Side by Side Diff: webrtc/modules/audio_processing/aec/aec_core.c

Issue 1151573021: Re-land r9378 "Rename APM Config DelayCorrection to ExtendedFilter" (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: New line 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
(...skipping 1916 matching lines...) Expand 10 before | Expand all | Expand 10 after
1927 } 1927 }
1928 1928
1929 void WebRtcAec_enable_reported_delay(AecCore* self, int enable) { 1929 void WebRtcAec_enable_reported_delay(AecCore* self, int enable) {
1930 self->reported_delay_enabled = enable; 1930 self->reported_delay_enabled = enable;
1931 } 1931 }
1932 1932
1933 int WebRtcAec_reported_delay_enabled(AecCore* self) { 1933 int WebRtcAec_reported_delay_enabled(AecCore* self) {
1934 return self->reported_delay_enabled; 1934 return self->reported_delay_enabled;
1935 } 1935 }
1936 1936
1937 void WebRtcAec_enable_delay_correction(AecCore* self, int enable) { 1937 void WebRtcAec_enable_extended_filter(AecCore* self, int enable) {
1938 self->extended_filter_enabled = enable; 1938 self->extended_filter_enabled = enable;
1939 self->num_partitions = enable ? kExtendedNumPartitions : kNormalNumPartitions; 1939 self->num_partitions = enable ? kExtendedNumPartitions : kNormalNumPartitions;
1940 // Update the delay estimator with filter length. See InitAEC() for details. 1940 // Update the delay estimator with filter length. See InitAEC() for details.
1941 WebRtc_set_allowed_offset(self->delay_estimator, self->num_partitions / 2); 1941 WebRtc_set_allowed_offset(self->delay_estimator, self->num_partitions / 2);
1942 } 1942 }
1943 1943
1944 int WebRtcAec_delay_correction_enabled(AecCore* self) { 1944 int WebRtcAec_extended_filter_enabled(AecCore* self) {
1945 return self->extended_filter_enabled; 1945 return self->extended_filter_enabled;
1946 } 1946 }
1947 1947
1948 int WebRtcAec_system_delay(AecCore* self) { return self->system_delay; } 1948 int WebRtcAec_system_delay(AecCore* self) { return self->system_delay; }
1949 1949
1950 void WebRtcAec_SetSystemDelay(AecCore* self, int delay) { 1950 void WebRtcAec_SetSystemDelay(AecCore* self, int delay) {
1951 assert(delay >= 0); 1951 assert(delay >= 0);
1952 self->system_delay = delay; 1952 self->system_delay = delay;
1953 } 1953 }
OLDNEW
« no previous file with comments | « webrtc/modules/audio_processing/aec/aec_core.h ('k') | webrtc/modules/audio_processing/aec/echo_cancellation.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698