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 |
11 #include <math.h> | 11 #include <math.h> |
12 #include <stdio.h> | 12 #include <stdio.h> |
13 | 13 |
14 #include <algorithm> | 14 #include <algorithm> |
15 #include <limits> | 15 #include <limits> |
16 #include <memory> | 16 #include <memory> |
17 #include <queue> | 17 #include <queue> |
18 | 18 |
19 #include "webrtc/base/arraysize.h" | 19 #include "webrtc/base/arraysize.h" |
20 #include "webrtc/base/checks.h" | 20 #include "webrtc/base/checks.h" |
| 21 #include "webrtc/base/ignore_wundef.h" |
21 #include "webrtc/common_audio/include/audio_util.h" | 22 #include "webrtc/common_audio/include/audio_util.h" |
22 #include "webrtc/common_audio/resampler/include/push_resampler.h" | 23 #include "webrtc/common_audio/resampler/include/push_resampler.h" |
23 #include "webrtc/common_audio/resampler/push_sinc_resampler.h" | 24 #include "webrtc/common_audio/resampler/push_sinc_resampler.h" |
24 #include "webrtc/common_audio/signal_processing/include/signal_processing_librar
y.h" | 25 #include "webrtc/common_audio/signal_processing/include/signal_processing_librar
y.h" |
25 #include "webrtc/modules/audio_processing/beamformer/mock_nonlinear_beamformer.h
" | 26 #include "webrtc/modules/audio_processing/beamformer/mock_nonlinear_beamformer.h
" |
26 #include "webrtc/modules/audio_processing/common.h" | 27 #include "webrtc/modules/audio_processing/common.h" |
27 #include "webrtc/modules/audio_processing/include/audio_processing.h" | 28 #include "webrtc/modules/audio_processing/include/audio_processing.h" |
28 #include "webrtc/modules/audio_processing/test/protobuf_utils.h" | 29 #include "webrtc/modules/audio_processing/test/protobuf_utils.h" |
29 #include "webrtc/modules/audio_processing/test/test_utils.h" | 30 #include "webrtc/modules/audio_processing/test/test_utils.h" |
30 #include "webrtc/modules/include/module_common_types.h" | 31 #include "webrtc/modules/include/module_common_types.h" |
31 #include "webrtc/system_wrappers/include/event_wrapper.h" | 32 #include "webrtc/system_wrappers/include/event_wrapper.h" |
32 #include "webrtc/system_wrappers/include/trace.h" | 33 #include "webrtc/system_wrappers/include/trace.h" |
| 34 #include "webrtc/test/gtest.h" |
33 #include "webrtc/test/testsupport/fileutils.h" | 35 #include "webrtc/test/testsupport/fileutils.h" |
| 36 |
| 37 RTC_PUSH_IGNORING_WUNDEF() |
34 #ifdef WEBRTC_ANDROID_PLATFORM_BUILD | 38 #ifdef WEBRTC_ANDROID_PLATFORM_BUILD |
35 #include "gtest/gtest.h" | |
36 #include "external/webrtc/webrtc/modules/audio_processing/test/unittest.pb.h" | 39 #include "external/webrtc/webrtc/modules/audio_processing/test/unittest.pb.h" |
37 #else | 40 #else |
38 #include "testing/gtest/include/gtest/gtest.h" | |
39 #include "webrtc/modules/audio_processing/unittest.pb.h" | 41 #include "webrtc/modules/audio_processing/unittest.pb.h" |
40 #endif | 42 #endif |
| 43 RTC_POP_IGNORING_WUNDEF() |
41 | 44 |
42 namespace webrtc { | 45 namespace webrtc { |
43 namespace { | 46 namespace { |
44 | 47 |
45 // TODO(ekmeyerson): Switch to using StreamConfig and ProcessingConfig where | 48 // TODO(ekmeyerson): Switch to using StreamConfig and ProcessingConfig where |
46 // applicable. | 49 // applicable. |
47 | 50 |
48 // TODO(bjornv): This is not feasible until the functionality has been | 51 // TODO(bjornv): This is not feasible until the functionality has been |
49 // re-implemented; see comment at the bottom of this file. For now, the user has | 52 // re-implemented; see comment at the bottom of this file. For now, the user has |
50 // to hard code the |write_ref_data| value. | 53 // to hard code the |write_ref_data| value. |
(...skipping 2717 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2768 std::tr1::make_tuple(16000, 32000, 48000, 32000, 25, 35), | 2771 std::tr1::make_tuple(16000, 32000, 48000, 32000, 25, 35), |
2769 std::tr1::make_tuple(16000, 32000, 32000, 32000, 25, 0), | 2772 std::tr1::make_tuple(16000, 32000, 32000, 32000, 25, 0), |
2770 std::tr1::make_tuple(16000, 32000, 16000, 32000, 25, 20), | 2773 std::tr1::make_tuple(16000, 32000, 16000, 32000, 25, 20), |
2771 std::tr1::make_tuple(16000, 16000, 48000, 16000, 35, 20), | 2774 std::tr1::make_tuple(16000, 16000, 48000, 16000, 35, 20), |
2772 std::tr1::make_tuple(16000, 16000, 32000, 16000, 35, 20), | 2775 std::tr1::make_tuple(16000, 16000, 32000, 16000, 35, 20), |
2773 std::tr1::make_tuple(16000, 16000, 16000, 16000, 0, 0))); | 2776 std::tr1::make_tuple(16000, 16000, 16000, 16000, 0, 0))); |
2774 #endif | 2777 #endif |
2775 | 2778 |
2776 } // namespace | 2779 } // namespace |
2777 } // namespace webrtc | 2780 } // namespace webrtc |
OLD | NEW |