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 1869 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1880 return 0; | 1880 return 0; |
1881 } | 1881 } |
1882 | 1882 |
1883 int WebRtcAec_echo_state(AecCore* self) { | 1883 int WebRtcAec_echo_state(AecCore* self) { |
1884 return self->echoState; | 1884 return self->echoState; |
1885 } | 1885 } |
1886 | 1886 |
1887 void WebRtcAec_GetEchoStats(AecCore* self, | 1887 void WebRtcAec_GetEchoStats(AecCore* self, |
1888 Stats* erl, | 1888 Stats* erl, |
1889 Stats* erle, | 1889 Stats* erle, |
1890 Stats* a_nlp) { | 1890 Stats* a_nlp, |
| 1891 float* divergent_filter_fraction) { |
1891 assert(erl != NULL); | 1892 assert(erl != NULL); |
1892 assert(erle != NULL); | 1893 assert(erle != NULL); |
1893 assert(a_nlp != NULL); | 1894 assert(a_nlp != NULL); |
1894 *erl = self->erl; | 1895 *erl = self->erl; |
1895 *erle = self->erle; | 1896 *erle = self->erle; |
1896 *a_nlp = self->aNlp; | 1897 *a_nlp = self->aNlp; |
| 1898 *divergent_filter_fraction = |
| 1899 self->divergent_filter_fraction.GetLatestFraction(); |
1897 } | 1900 } |
1898 | 1901 |
1899 void WebRtcAec_SetConfigCore(AecCore* self, | 1902 void WebRtcAec_SetConfigCore(AecCore* self, |
1900 int nlp_mode, | 1903 int nlp_mode, |
1901 int metrics_mode, | 1904 int metrics_mode, |
1902 int delay_logging) { | 1905 int delay_logging) { |
1903 assert(nlp_mode >= 0 && nlp_mode < 3); | 1906 assert(nlp_mode >= 0 && nlp_mode < 3); |
1904 self->nlp_mode = nlp_mode; | 1907 self->nlp_mode = nlp_mode; |
1905 self->metricsMode = metrics_mode; | 1908 self->metricsMode = metrics_mode; |
1906 if (self->metricsMode) { | 1909 if (self->metricsMode) { |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1945 | 1948 |
1946 int WebRtcAec_system_delay(AecCore* self) { | 1949 int WebRtcAec_system_delay(AecCore* self) { |
1947 return self->system_delay; | 1950 return self->system_delay; |
1948 } | 1951 } |
1949 | 1952 |
1950 void WebRtcAec_SetSystemDelay(AecCore* self, int delay) { | 1953 void WebRtcAec_SetSystemDelay(AecCore* self, int delay) { |
1951 assert(delay >= 0); | 1954 assert(delay >= 0); |
1952 self->system_delay = delay; | 1955 self->system_delay = delay; |
1953 } | 1956 } |
1954 } // namespace webrtc | 1957 } // namespace webrtc |
OLD | NEW |