| 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 1031 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1042 } | 1042 } |
| 1043 WriteIntData(near_frame.data_, | 1043 WriteIntData(near_frame.data_, |
| 1044 size, | 1044 size, |
| 1045 output_wav_file.get(), | 1045 output_wav_file.get(), |
| 1046 output_raw_file.get()); | 1046 output_raw_file.get()); |
| 1047 } else { | 1047 } else { |
| 1048 FAIL() << "Event " << event << " is unrecognized"; | 1048 FAIL() << "Event " << event << " is unrecognized"; |
| 1049 } | 1049 } |
| 1050 } | 1050 } |
| 1051 } | 1051 } |
| 1052 printf("100%% complete\r"); | 1052 if (progress) { |
| 1053 printf("100%% complete\r"); |
| 1054 } |
| 1053 | 1055 |
| 1054 if (aecm_echo_path_out_file != NULL) { | 1056 if (aecm_echo_path_out_file != NULL) { |
| 1055 const size_t path_size = | 1057 const size_t path_size = |
| 1056 apm->echo_control_mobile()->echo_path_size_bytes(); | 1058 apm->echo_control_mobile()->echo_path_size_bytes(); |
| 1057 rtc::scoped_ptr<char[]> echo_path(new char[path_size]); | 1059 rtc::scoped_ptr<char[]> echo_path(new char[path_size]); |
| 1058 apm->echo_control_mobile()->GetEchoPath(echo_path.get(), path_size); | 1060 apm->echo_control_mobile()->GetEchoPath(echo_path.get(), path_size); |
| 1059 ASSERT_EQ(path_size, fwrite(echo_path.get(), | 1061 ASSERT_EQ(path_size, fwrite(echo_path.get(), |
| 1060 sizeof(char), | 1062 sizeof(char), |
| 1061 path_size, | 1063 path_size, |
| 1062 aecm_echo_path_out_file)); | 1064 aecm_echo_path_out_file)); |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1139 } // namespace | 1141 } // namespace |
| 1140 } // namespace webrtc | 1142 } // namespace webrtc |
| 1141 | 1143 |
| 1142 int main(int argc, char* argv[]) { | 1144 int main(int argc, char* argv[]) { |
| 1143 webrtc::void_main(argc, argv); | 1145 webrtc::void_main(argc, argv); |
| 1144 | 1146 |
| 1145 // Optional, but removes memory leak noise from Valgrind. | 1147 // Optional, but removes memory leak noise from Valgrind. |
| 1146 google::protobuf::ShutdownProtobufLibrary(); | 1148 google::protobuf::ShutdownProtobufLibrary(); |
| 1147 return 0; | 1149 return 0; |
| 1148 } | 1150 } |
| OLD | NEW |