OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2014 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 |
11 #include "webrtc/modules/audio_processing/intelligibility/intelligibility_utils.
h" | 11 #include "webrtc/modules/audio_processing/intelligibility/intelligibility_utils.
h" |
12 | 12 |
13 #include <math.h> | 13 #include <math.h> |
14 #include <stdlib.h> | 14 #include <stdlib.h> |
15 #include <string.h> | 15 #include <string.h> |
16 #include <algorithm> | 16 #include <algorithm> |
17 #include <limits> | 17 #include <limits> |
18 | 18 |
19 #include "webrtc/base/safe_minmax.h" | 19 #include "webrtc/rtc_base/safe_minmax.h" |
20 | 20 |
21 namespace webrtc { | 21 namespace webrtc { |
22 | 22 |
23 namespace intelligibility { | 23 namespace intelligibility { |
24 | 24 |
25 namespace { | 25 namespace { |
26 | 26 |
27 const float kMinFactor = 0.01f; | 27 const float kMinFactor = 0.01f; |
28 const float kMaxFactor = 100.f; | 28 const float kMaxFactor = 100.f; |
29 | 29 |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 sample_index = 0u; | 85 sample_index = 0u; |
86 } | 86 } |
87 } | 87 } |
88 } | 88 } |
89 read_index_ = sample_index; | 89 read_index_ = sample_index; |
90 } | 90 } |
91 | 91 |
92 } // namespace intelligibility | 92 } // namespace intelligibility |
93 | 93 |
94 } // namespace webrtc | 94 } // namespace webrtc |
OLD | NEW |