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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 0.64166810, 0.63153117, 0.62128512, 0.61093173, 0.60047278, 0.58991008, | 67 0.64166810, 0.63153117, 0.62128512, 0.61093173, 0.60047278, 0.58991008, |
68 0.57924546, 0.56848075, 0.55761782, 0.54665854, 0.53560481, 0.52445853, | 68 0.57924546, 0.56848075, 0.55761782, 0.54665854, 0.53560481, 0.52445853, |
69 0.51322164, 0.50189608, 0.49048379, 0.47898676, 0.46740697, 0.45574642, | 69 0.51322164, 0.50189608, 0.49048379, 0.47898676, 0.46740697, 0.45574642, |
70 0.44400713, 0.43219112, 0.42030043, 0.40833713, 0.39630327, 0.38420093, | 70 0.44400713, 0.43219112, 0.42030043, 0.40833713, 0.39630327, 0.38420093, |
71 0.37203222, 0.35979922, 0.34750406, 0.33514885, 0.32273574, 0.31026687, | 71 0.37203222, 0.35979922, 0.34750406, 0.33514885, 0.32273574, 0.31026687, |
72 0.29774438, 0.28517045, 0.27254725, 0.25987696, 0.24716177, 0.23440387, | 72 0.29774438, 0.28517045, 0.27254725, 0.25987696, 0.24716177, 0.23440387, |
73 0.22160547, 0.20876878, 0.19589602, 0.18298941, 0.17005118, 0.15708358, | 73 0.22160547, 0.20876878, 0.19589602, 0.18298941, 0.17005118, 0.15708358, |
74 0.14408883, 0.13106918, 0.11802689, 0.10496421, 0.09188339, 0.07878670, | 74 0.14408883, 0.13106918, 0.11802689, 0.10496421, 0.09188339, 0.07878670, |
75 0.06567639, 0.05255473, 0.03942400, 0.02628645, 0.01314436, 0.00000000}; | 75 0.06567639, 0.05255473, 0.03942400, 0.02628645, 0.01314436, 0.00000000}; |
76 | 76 |
77 static const int kFilterOrder = 2; | 77 static const size_t kFilterOrder = 2; |
78 static const float kCoeffNumerator[kFilterOrder + 1] = {0.974827f, | 78 static const float kCoeffNumerator[kFilterOrder + 1] = {0.974827f, |
79 -1.949650f, | 79 -1.949650f, |
80 0.974827f}; | 80 0.974827f}; |
81 static const float kCoeffDenominator[kFilterOrder + 1] = {1.0f, | 81 static const float kCoeffDenominator[kFilterOrder + 1] = {1.0f, |
82 -1.971999f, | 82 -1.971999f, |
83 0.972457f}; | 83 0.972457f}; |
84 | 84 |
85 static_assert(kFilterOrder + 1 == | 85 static_assert(kFilterOrder + 1 == |
86 sizeof(kCoeffNumerator) / sizeof(kCoeffNumerator[0]), | 86 sizeof(kCoeffNumerator) / sizeof(kCoeffNumerator[0]), |
87 "numerator coefficients incorrect size"); | 87 "numerator coefficients incorrect size"); |
88 static_assert(kFilterOrder + 1 == | 88 static_assert(kFilterOrder + 1 == |
89 sizeof(kCoeffDenominator) / sizeof(kCoeffDenominator[0]), | 89 sizeof(kCoeffDenominator) / sizeof(kCoeffDenominator[0]), |
90 "denominator coefficients incorrect size"); | 90 "denominator coefficients incorrect size"); |
91 | 91 |
92 } // namespace webrtc | 92 } // namespace webrtc |
93 | 93 |
94 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_VAD_VAD_AUDIO_PROCESSING_H_ | 94 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_VAD_VAD_AUDIO_PROCESSING_H_ |
OLD | NEW |