Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7)

Side by Side Diff: webrtc/modules/audio_processing/test/unpack.cc

Issue 1348903004: Adding APM configuration in AEC dump. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 224 matching lines...) Expand 10 before | Expand all | Expand 10 after
235 fprintf(settings_file, 235 fprintf(settings_file,
236 " Reverse sample rate: %d\n", 236 " Reverse sample rate: %d\n",
237 reverse_sample_rate); 237 reverse_sample_rate);
238 num_input_channels = msg.num_input_channels(); 238 num_input_channels = msg.num_input_channels();
239 fprintf(settings_file, " Input channels: %d\n", num_input_channels); 239 fprintf(settings_file, " Input channels: %d\n", num_input_channels);
240 num_output_channels = msg.num_output_channels(); 240 num_output_channels = msg.num_output_channels();
241 fprintf(settings_file, " Output channels: %d\n", num_output_channels); 241 fprintf(settings_file, " Output channels: %d\n", num_output_channels);
242 num_reverse_channels = msg.num_reverse_channels(); 242 num_reverse_channels = msg.num_reverse_channels();
243 fprintf(settings_file, " Reverse channels: %d\n", num_reverse_channels); 243 fprintf(settings_file, " Reverse channels: %d\n", num_reverse_channels);
244 244
245 fprintf(settings_file, " APM settings:\n");
246 if (msg.has_aec_enabled()) {
247 fprintf(settings_file, " AEC enabled: %d\n", msg.aec_enabled());
248 }
249 if (msg.has_aec_delay_agnostic()) {
250 fprintf(settings_file, " AEC delay agnostic: %d\n",
251 msg.aec_delay_agnostic());
252 }
253 if (msg.has_aec_drift_compensation()) {
254 fprintf(settings_file, " AEC drift compensation: %d\n",
255 msg.aec_drift_compensation());
256 }
257 if (msg.has_aec_extended_filter()) {
258 fprintf(settings_file, " AEC extended filter: %d\n",
259 msg.aec_extended_filter());
260 }
261 if (msg.has_aec_suppression_level()) {
262 fprintf(settings_file, " AEC suppression level: %d\n",
263 msg.aec_suppression_level());
264 }
265 if (msg.has_aecm_enabled()) {
266 fprintf(settings_file, " AECM enabled: %d\n", msg.aecm_enabled());
267 }
268 if (msg.has_aecm_comfort_noise()) {
269 fprintf(settings_file, " AECM comfort noise: %d\n",
270 msg.aecm_comfort_noise());
271 }
272 if (msg.has_aecm_routing_mode()) {
273 fprintf(settings_file, " AECM routing mode: %d\n",
274 msg.aecm_routing_mode());
275 }
276 if (msg.has_agc_enabled()) {
277 fprintf(settings_file, " AGC enabled: %d\n", msg.agc_enabled());
278 }
279 if (msg.has_agc_mode()) {
280 fprintf(settings_file, " AGC mode: %d\n", msg.agc_mode());
281 }
282 if (msg.has_agc_limiter()) {
283 fprintf(settings_file, " AGC limiter: %d\n", msg.agc_limiter());
284 }
285 if (msg.has_hpf_enabled()) {
286 fprintf(settings_file, " HPF enabled: %d\n", msg.hpf_enabled());
287 }
288 if (msg.has_ns_enabled()) {
289 fprintf(settings_file, " NS enabled: %d\n", msg.ns_enabled());
290 }
291 if (msg.has_ns_experiment()) {
292 fprintf(settings_file, " NS experiment: %d\n", msg.ns_experiment());
293 }
294 if (msg.has_ns_level()) {
295 fprintf(settings_file, " NS level: %d\n", msg. ns_level());
296 }
297
245 fprintf(settings_file, "\n"); 298 fprintf(settings_file, "\n");
246 299
247 if (reverse_sample_rate == 0) { 300 if (reverse_sample_rate == 0) {
248 reverse_sample_rate = input_sample_rate; 301 reverse_sample_rate = input_sample_rate;
249 } 302 }
250 if (output_sample_rate == 0) { 303 if (output_sample_rate == 0) {
251 output_sample_rate = input_sample_rate; 304 output_sample_rate = input_sample_rate;
252 } 305 }
253 306
254 reverse_samples_per_channel = reverse_sample_rate / 100; 307 reverse_samples_per_channel = reverse_sample_rate / 100;
(...skipping 17 matching lines...) Expand all
272 } 325 }
273 326
274 return 0; 327 return 0;
275 } 328 }
276 329
277 } // namespace webrtc 330 } // namespace webrtc
278 331
279 int main(int argc, char* argv[]) { 332 int main(int argc, char* argv[]) {
280 return webrtc::do_main(argc, argv); 333 return webrtc::do_main(argc, argv);
281 } 334 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698