OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2014 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 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
151 "Specify the VAD likelihood (0-3)"); | 151 "Specify the VAD likelihood (0-3)"); |
152 DEFINE_int32(ns_level, | 152 DEFINE_int32(ns_level, |
153 kParameterNotSpecifiedValue, | 153 kParameterNotSpecifiedValue, |
154 "Specify the NS level (0-3)"); | 154 "Specify the NS level (0-3)"); |
155 DEFINE_int32(stream_delay, | 155 DEFINE_int32(stream_delay, |
156 kParameterNotSpecifiedValue, | 156 kParameterNotSpecifiedValue, |
157 "Specify the stream delay in ms to use"); | 157 "Specify the stream delay in ms to use"); |
158 DEFINE_int32(stream_drift_samples, | 158 DEFINE_int32(stream_drift_samples, |
159 kParameterNotSpecifiedValue, | 159 kParameterNotSpecifiedValue, |
160 "Specify the number of stream drift samples to use"); | 160 "Specify the number of stream drift samples to use"); |
| 161 DEFINE_bool(simulate_mic_gain, |
| 162 false, |
| 163 "Simulate adjustable microphone analog gain"); |
161 DEFINE_bool(performance_report, false, "Report the APM performance "); | 164 DEFINE_bool(performance_report, false, "Report the APM performance "); |
162 DEFINE_bool(verbose, false, "Produce verbose output"); | 165 DEFINE_bool(verbose, false, "Produce verbose output"); |
163 DEFINE_bool(bitexactness_report, | 166 DEFINE_bool(bitexactness_report, |
164 false, | 167 false, |
165 "Report bitexactness for aec dump result reproduction"); | 168 "Report bitexactness for aec dump result reproduction"); |
166 DEFINE_bool(discard_settings_in_aecdump, | 169 DEFINE_bool(discard_settings_in_aecdump, |
167 false, | 170 false, |
168 "Discard any config settings specified in the aec dump"); | 171 "Discard any config settings specified in the aec dump"); |
169 DEFINE_bool(store_intermediate_output, | 172 DEFINE_bool(store_intermediate_output, |
170 false, | 173 false, |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
257 SetSettingIfFlagSet(FLAGS_agc_limiter, &settings.use_agc_limiter); | 260 SetSettingIfFlagSet(FLAGS_agc_limiter, &settings.use_agc_limiter); |
258 SetSettingIfSpecified(FLAGS_agc_compression_gain, | 261 SetSettingIfSpecified(FLAGS_agc_compression_gain, |
259 &settings.agc_compression_gain); | 262 &settings.agc_compression_gain); |
260 SetSettingIfSpecified(FLAGS_vad_likelihood, &settings.vad_likelihood); | 263 SetSettingIfSpecified(FLAGS_vad_likelihood, &settings.vad_likelihood); |
261 SetSettingIfSpecified(FLAGS_ns_level, &settings.ns_level); | 264 SetSettingIfSpecified(FLAGS_ns_level, &settings.ns_level); |
262 SetSettingIfSpecified(FLAGS_stream_delay, &settings.stream_delay); | 265 SetSettingIfSpecified(FLAGS_stream_delay, &settings.stream_delay); |
263 SetSettingIfSpecified(FLAGS_stream_drift_samples, | 266 SetSettingIfSpecified(FLAGS_stream_drift_samples, |
264 &settings.stream_drift_samples); | 267 &settings.stream_drift_samples); |
265 SetSettingIfSpecified(FLAGS_custom_call_order_file, | 268 SetSettingIfSpecified(FLAGS_custom_call_order_file, |
266 &settings.custom_call_order_filename); | 269 &settings.custom_call_order_filename); |
| 270 settings.simulate_mic_gain = FLAGS_simulate_mic_gain; |
267 settings.report_performance = FLAGS_performance_report; | 271 settings.report_performance = FLAGS_performance_report; |
268 settings.use_verbose_logging = FLAGS_verbose; | 272 settings.use_verbose_logging = FLAGS_verbose; |
269 settings.report_bitexactness = FLAGS_bitexactness_report; | 273 settings.report_bitexactness = FLAGS_bitexactness_report; |
270 settings.discard_all_settings_in_aecdump = FLAGS_discard_settings_in_aecdump; | 274 settings.discard_all_settings_in_aecdump = FLAGS_discard_settings_in_aecdump; |
271 settings.fixed_interface = FLAGS_fixed_interface; | 275 settings.fixed_interface = FLAGS_fixed_interface; |
272 settings.store_intermediate_output = FLAGS_store_intermediate_output; | 276 settings.store_intermediate_output = FLAGS_store_intermediate_output; |
273 | 277 |
274 return settings; | 278 return settings; |
275 } | 279 } |
276 | 280 |
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
458 | 462 |
459 return 0; | 463 return 0; |
460 } | 464 } |
461 | 465 |
462 } // namespace test | 466 } // namespace test |
463 } // namespace webrtc | 467 } // namespace webrtc |
464 | 468 |
465 int main(int argc, char* argv[]) { | 469 int main(int argc, char* argv[]) { |
466 return webrtc::test::main(argc, argv); | 470 return webrtc::test::main(argc, argv); |
467 } | 471 } |
OLD | NEW |