OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2011 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 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
245 PRINT_CONFIG(aecm_comfort_noise_enabled); | 245 PRINT_CONFIG(aecm_comfort_noise_enabled); |
246 PRINT_CONFIG(aecm_routing_mode); | 246 PRINT_CONFIG(aecm_routing_mode); |
247 PRINT_CONFIG(agc_enabled); | 247 PRINT_CONFIG(agc_enabled); |
248 PRINT_CONFIG(agc_mode); | 248 PRINT_CONFIG(agc_mode); |
249 PRINT_CONFIG(agc_limiter_enabled); | 249 PRINT_CONFIG(agc_limiter_enabled); |
250 PRINT_CONFIG(noise_robust_agc_enabled); | 250 PRINT_CONFIG(noise_robust_agc_enabled); |
251 PRINT_CONFIG(hpf_enabled); | 251 PRINT_CONFIG(hpf_enabled); |
252 PRINT_CONFIG(ns_enabled); | 252 PRINT_CONFIG(ns_enabled); |
253 PRINT_CONFIG(ns_level); | 253 PRINT_CONFIG(ns_level); |
254 PRINT_CONFIG(transient_suppression_enabled); | 254 PRINT_CONFIG(transient_suppression_enabled); |
| 255 if (msg.has_experiments_description()) { |
| 256 fprintf(settings_file, " experiments_description: %s\n", |
| 257 msg.experiments_description().c_str()); |
| 258 } |
255 } else if (event_msg.type() == Event::INIT) { | 259 } else if (event_msg.type() == Event::INIT) { |
256 if (!event_msg.has_init()) { | 260 if (!event_msg.has_init()) { |
257 printf("Corrupt input file: Init missing.\n"); | 261 printf("Corrupt input file: Init missing.\n"); |
258 return 1; | 262 return 1; |
259 } | 263 } |
260 | 264 |
261 const Init msg = event_msg.init(); | 265 const Init msg = event_msg.init(); |
262 // These should print out zeros if they're missing. | 266 // These should print out zeros if they're missing. |
263 fprintf(settings_file, "Init at frame: %d\n", frame_count); | 267 fprintf(settings_file, "Init at frame: %d\n", frame_count); |
264 int input_sample_rate = msg.sample_rate(); | 268 int input_sample_rate = msg.sample_rate(); |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
312 } | 316 } |
313 | 317 |
314 return 0; | 318 return 0; |
315 } | 319 } |
316 | 320 |
317 } // namespace webrtc | 321 } // namespace webrtc |
318 | 322 |
319 int main(int argc, char* argv[]) { | 323 int main(int argc, char* argv[]) { |
320 return webrtc::do_main(argc, argv); | 324 return webrtc::do_main(argc, argv); |
321 } | 325 } |
OLD | NEW |