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 #include "webrtc/modules/audio_processing/logging/apm_data_dumper.h" | 11 #include "webrtc/modules/audio_processing/logging/apm_data_dumper.h" |
12 | 12 |
13 #include <sstream> | 13 #include <sstream> |
14 | 14 |
15 #include "webrtc/base/stringutils.h" | 15 #include "webrtc/rtc_base/stringutils.h" |
16 | 16 |
17 // Check to verify that the define is properly set. | 17 // Check to verify that the define is properly set. |
18 #if !defined(WEBRTC_APM_DEBUG_DUMP) || \ | 18 #if !defined(WEBRTC_APM_DEBUG_DUMP) || \ |
19 (WEBRTC_APM_DEBUG_DUMP != 0 && WEBRTC_APM_DEBUG_DUMP != 1) | 19 (WEBRTC_APM_DEBUG_DUMP != 0 && WEBRTC_APM_DEBUG_DUMP != 1) |
20 #error "Set WEBRTC_APM_DEBUG_DUMP to either 0 or 1" | 20 #error "Set WEBRTC_APM_DEBUG_DUMP to either 0 or 1" |
21 #endif | 21 #endif |
22 | 22 |
23 namespace webrtc { | 23 namespace webrtc { |
24 | 24 |
25 namespace { | 25 namespace { |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 auto& f = wav_files_[filename]; | 65 auto& f = wav_files_[filename]; |
66 if (!f) { | 66 if (!f) { |
67 f.reset(new WavWriter(filename.c_str(), sample_rate_hz, num_channels)); | 67 f.reset(new WavWriter(filename.c_str(), sample_rate_hz, num_channels)); |
68 } | 68 } |
69 return f.get(); | 69 return f.get(); |
70 } | 70 } |
71 | 71 |
72 #endif | 72 #endif |
73 | 73 |
74 } // namespace webrtc | 74 } // namespace webrtc |
OLD | NEW |