OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2016 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 #ifndef WEBRTC_MODULES_AUDIO_PROCESSING_LOGGING_APM_DATA_DUMPER_H_ | 11 #ifndef WEBRTC_MODULES_AUDIO_PROCESSING_LOGGING_APM_DATA_DUMPER_H_ |
12 #define WEBRTC_MODULES_AUDIO_PROCESSING_LOGGING_APM_DATA_DUMPER_H_ | 12 #define WEBRTC_MODULES_AUDIO_PROCESSING_LOGGING_APM_DATA_DUMPER_H_ |
13 | 13 |
14 #include <stdio.h> | 14 #include <stdio.h> |
15 | 15 |
16 #include <memory> | 16 #include <memory> |
17 #include <string> | 17 #include <string> |
18 #include <unordered_map> | 18 #include <unordered_map> |
19 | 19 |
| 20 #include "webrtc/base/array_view.h" |
| 21 #include "webrtc/base/constructormagic.h" |
20 #include "webrtc/common_audio/wav_file.h" | 22 #include "webrtc/common_audio/wav_file.h" |
21 #include "webrtc/rtc_base/array_view.h" | |
22 #include "webrtc/rtc_base/constructormagic.h" | |
23 | 23 |
24 // Check to verify that the define is properly set. | 24 // Check to verify that the define is properly set. |
25 #if !defined(WEBRTC_APM_DEBUG_DUMP) || \ | 25 #if !defined(WEBRTC_APM_DEBUG_DUMP) || \ |
26 (WEBRTC_APM_DEBUG_DUMP != 0 && WEBRTC_APM_DEBUG_DUMP != 1) | 26 (WEBRTC_APM_DEBUG_DUMP != 0 && WEBRTC_APM_DEBUG_DUMP != 1) |
27 #error "Set WEBRTC_APM_DEBUG_DUMP to either 0 or 1" | 27 #error "Set WEBRTC_APM_DEBUG_DUMP to either 0 or 1" |
28 #endif | 28 #endif |
29 | 29 |
30 namespace webrtc { | 30 namespace webrtc { |
31 | 31 |
32 #if WEBRTC_APM_DEBUG_DUMP == 1 | 32 #if WEBRTC_APM_DEBUG_DUMP == 1 |
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
203 | 203 |
204 FILE* GetRawFile(const char* name); | 204 FILE* GetRawFile(const char* name); |
205 WavWriter* GetWavFile(const char* name, int sample_rate_hz, int num_channels); | 205 WavWriter* GetWavFile(const char* name, int sample_rate_hz, int num_channels); |
206 #endif | 206 #endif |
207 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(ApmDataDumper); | 207 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(ApmDataDumper); |
208 }; | 208 }; |
209 | 209 |
210 } // namespace webrtc | 210 } // namespace webrtc |
211 | 211 |
212 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_LOGGING_APM_DATA_DUMPER_H_ | 212 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_LOGGING_APM_DATA_DUMPER_H_ |
OLD | NEW |