| 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 22 matching lines...) Expand all Loading... |
| 33 extern "C" { | 33 extern "C" { |
| 34 #include "webrtc/modules/audio_processing/aec/aec_rdft.h" | 34 #include "webrtc/modules/audio_processing/aec/aec_rdft.h" |
| 35 } | 35 } |
| 36 #include "webrtc/modules/audio_processing/logging/aec_logging.h" | 36 #include "webrtc/modules/audio_processing/logging/aec_logging.h" |
| 37 extern "C" { | 37 extern "C" { |
| 38 #include "webrtc/modules/audio_processing/utility/delay_estimator_wrapper.h" | 38 #include "webrtc/modules/audio_processing/utility/delay_estimator_wrapper.h" |
| 39 } | 39 } |
| 40 #include "webrtc/system_wrappers/include/cpu_features_wrapper.h" | 40 #include "webrtc/system_wrappers/include/cpu_features_wrapper.h" |
| 41 #include "webrtc/typedefs.h" | 41 #include "webrtc/typedefs.h" |
| 42 | 42 |
| 43 namespace webrtc { |
| 44 |
| 43 // Buffer size (samples) | 45 // Buffer size (samples) |
| 44 static const size_t kBufSizePartitions = 250; // 1 second of audio in 16 kHz. | 46 static const size_t kBufSizePartitions = 250; // 1 second of audio in 16 kHz. |
| 45 | 47 |
| 46 // Metrics | 48 // Metrics |
| 47 static const int subCountLen = 4; | 49 static const int subCountLen = 4; |
| 48 static const int countLen = 50; | 50 static const int countLen = 50; |
| 49 static const int kDelayMetricsAggregationWindow = 1250; // 5 seconds at 16 kHz. | 51 static const int kDelayMetricsAggregationWindow = 1250; // 5 seconds at 16 kHz. |
| 50 | 52 |
| 51 // Quantities to control H band scaling for SWB input | 53 // Quantities to control H band scaling for SWB input |
| 52 static const float cnScaleHband = 0.4f; // scale for comfort noise in H band. | 54 static const float cnScaleHband = 0.4f; // scale for comfort noise in H band. |
| (...skipping 1841 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1894 } | 1896 } |
| 1895 | 1897 |
| 1896 int WebRtcAec_system_delay(AecCore* self) { | 1898 int WebRtcAec_system_delay(AecCore* self) { |
| 1897 return self->system_delay; | 1899 return self->system_delay; |
| 1898 } | 1900 } |
| 1899 | 1901 |
| 1900 void WebRtcAec_SetSystemDelay(AecCore* self, int delay) { | 1902 void WebRtcAec_SetSystemDelay(AecCore* self, int delay) { |
| 1901 assert(delay >= 0); | 1903 assert(delay >= 0); |
| 1902 self->system_delay = delay; | 1904 self->system_delay = delay; |
| 1903 } | 1905 } |
| 1906 } // namespace webrtc |
| OLD | NEW |