OLD | NEW |
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 Loading... |
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 } |
OLD | NEW |