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

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

Issue 2067423002: Unpack different wav files after each INIT event of the aecdump (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 6 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 285 matching lines...) Expand 10 before | Expand all | Expand 10 after
296 reverse_samples_per_channel = 296 reverse_samples_per_channel =
297 static_cast<size_t>(reverse_sample_rate / 100); 297 static_cast<size_t>(reverse_sample_rate / 100);
298 input_samples_per_channel = 298 input_samples_per_channel =
299 static_cast<size_t>(input_sample_rate / 100); 299 static_cast<size_t>(input_sample_rate / 100);
300 output_samples_per_channel = 300 output_samples_per_channel =
301 static_cast<size_t>(output_sample_rate / 100); 301 static_cast<size_t>(output_sample_rate / 100);
302 302
303 if (!FLAGS_raw) { 303 if (!FLAGS_raw) {
304 // The WAV files need to be reset every time, because they cant change 304 // The WAV files need to be reset every time, because they cant change
305 // their sample rate or number of channels. 305 // their sample rate or number of channels.
306 reverse_wav_file.reset(new WavWriter(FLAGS_reverse_file + ".wav", 306 std::stringstream reverse_name;
307 reverse_name << FLAGS_reverse_file << frame_count << ".wav";
308 reverse_wav_file.reset(new WavWriter(reverse_name.str(),
307 reverse_sample_rate, 309 reverse_sample_rate,
308 num_reverse_channels)); 310 num_reverse_channels));
309 input_wav_file.reset(new WavWriter(FLAGS_input_file + ".wav", 311 std::stringstream input_name;
312 input_name << FLAGS_input_file << frame_count << ".wav";
313 input_wav_file.reset(new WavWriter(input_name.str(),
310 input_sample_rate, 314 input_sample_rate,
311 num_input_channels)); 315 num_input_channels));
312 output_wav_file.reset(new WavWriter(FLAGS_output_file + ".wav", 316 std::stringstream output_name;
317 output_name << FLAGS_output_file << frame_count << ".wav";
318 output_wav_file.reset(new WavWriter(output_name.str(),
313 output_sample_rate, 319 output_sample_rate,
314 num_output_channels)); 320 num_output_channels));
315 } 321 }
316 } 322 }
317 } 323 }
318 324
319 return 0; 325 return 0;
320 } 326 }
321 327
322 } // namespace webrtc 328 } // namespace webrtc
323 329
324 int main(int argc, char* argv[]) { 330 int main(int argc, char* argv[]) {
325 return webrtc::do_main(argc, argv); 331 return webrtc::do_main(argc, argv);
326 } 332 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698