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 |
(...skipping 29 matching lines...) Expand all Loading... |
40 #include "webrtc/modules/include/module_common_types.h" | 40 #include "webrtc/modules/include/module_common_types.h" |
41 #include "webrtc/system_wrappers/include/file_wrapper.h" | 41 #include "webrtc/system_wrappers/include/file_wrapper.h" |
42 #include "webrtc/system_wrappers/include/logging.h" | 42 #include "webrtc/system_wrappers/include/logging.h" |
43 #include "webrtc/system_wrappers/include/metrics.h" | 43 #include "webrtc/system_wrappers/include/metrics.h" |
44 | 44 |
45 #ifdef WEBRTC_AUDIOPROC_DEBUG_DUMP | 45 #ifdef WEBRTC_AUDIOPROC_DEBUG_DUMP |
46 // Files generated at build-time by the protobuf compiler. | 46 // Files generated at build-time by the protobuf compiler. |
47 #ifdef WEBRTC_ANDROID_PLATFORM_BUILD | 47 #ifdef WEBRTC_ANDROID_PLATFORM_BUILD |
48 #include "external/webrtc/webrtc/modules/audio_processing/debug.pb.h" | 48 #include "external/webrtc/webrtc/modules/audio_processing/debug.pb.h" |
49 #else | 49 #else |
50 #include "webrtc/audio_processing/debug.pb.h" | 50 #include "webrtc/modules/audio_processing/debug.pb.h" |
51 #endif | 51 #endif |
52 #endif // WEBRTC_AUDIOPROC_DEBUG_DUMP | 52 #endif // WEBRTC_AUDIOPROC_DEBUG_DUMP |
53 | 53 |
54 #define RETURN_ON_ERR(expr) \ | 54 #define RETURN_ON_ERR(expr) \ |
55 do { \ | 55 do { \ |
56 int err = (expr); \ | 56 int err = (expr); \ |
57 if (err != kNoError) { \ | 57 if (err != kNoError) { \ |
58 return err; \ | 58 return err; \ |
59 } \ | 59 } \ |
60 } while (0) | 60 } while (0) |
(...skipping 1482 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1543 debug_dump_.capture.event_msg->mutable_config()->CopyFrom(config); | 1543 debug_dump_.capture.event_msg->mutable_config()->CopyFrom(config); |
1544 | 1544 |
1545 RETURN_ON_ERR(WriteMessageToDebugFile(debug_dump_.debug_file.get(), | 1545 RETURN_ON_ERR(WriteMessageToDebugFile(debug_dump_.debug_file.get(), |
1546 &debug_dump_.num_bytes_left_for_log_, | 1546 &debug_dump_.num_bytes_left_for_log_, |
1547 &crit_debug_, &debug_dump_.capture)); | 1547 &crit_debug_, &debug_dump_.capture)); |
1548 return kNoError; | 1548 return kNoError; |
1549 } | 1549 } |
1550 #endif // WEBRTC_AUDIOPROC_DEBUG_DUMP | 1550 #endif // WEBRTC_AUDIOPROC_DEBUG_DUMP |
1551 | 1551 |
1552 } // namespace webrtc | 1552 } // namespace webrtc |
OLD | NEW |