OLD | NEW |
---|---|
1 /* | 1 /* |
2 * Copyright (c) 2017 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2017 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/aec3/render_signal_analyzer.h" | 11 #include "webrtc/modules/audio_processing/aec3/render_signal_analyzer.h" |
12 | 12 |
peah-webrtc
2017/03/30 05:36:56
Since the changes in this CL breaks the code in th
| |
13 // TODO(peah): Reactivate once the next CL has landed. | |
14 #if 0 | |
15 | |
13 #include <math.h> | 16 #include <math.h> |
14 #include <array> | 17 #include <array> |
15 #include <vector> | 18 #include <vector> |
16 | 19 |
17 #include "webrtc/base/array_view.h" | 20 #include "webrtc/base/array_view.h" |
18 #include "webrtc/base/random.h" | 21 #include "webrtc/base/random.h" |
19 #include "webrtc/modules/audio_processing/aec3/aec3_common.h" | 22 #include "webrtc/modules/audio_processing/aec3/aec3_common.h" |
20 #include "webrtc/modules/audio_processing/aec3/aec3_fft.h" | 23 #include "webrtc/modules/audio_processing/aec3/aec3_fft.h" |
21 #include "webrtc/modules/audio_processing/aec3/fft_buffer.h" | 24 #include "webrtc/modules/audio_processing/aec3/fft_buffer.h" |
22 #include "webrtc/modules/audio_processing/aec3/fft_data.h" | 25 #include "webrtc/modules/audio_processing/aec3/fft_data.h" |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
114 | 117 |
115 // Verify that no bands are detected as narrow when the delay is unknown. | 118 // Verify that no bands are detected as narrow when the delay is unknown. |
116 generate_sinusoid_test(false); | 119 generate_sinusoid_test(false); |
117 mask.fill(1.f); | 120 mask.fill(1.f); |
118 analyzer.MaskRegionsAroundNarrowBands(&mask); | 121 analyzer.MaskRegionsAroundNarrowBands(&mask); |
119 std::for_each(mask.begin(), mask.end(), [](float a) { EXPECT_EQ(1.f, a); }); | 122 std::for_each(mask.begin(), mask.end(), [](float a) { EXPECT_EQ(1.f, a); }); |
120 EXPECT_FALSE(analyzer.PoorSignalExcitation()); | 123 EXPECT_FALSE(analyzer.PoorSignalExcitation()); |
121 } | 124 } |
122 | 125 |
123 } // namespace webrtc | 126 } // namespace webrtc |
127 | |
128 #endif | |
OLD | NEW |