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

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

Issue 2075093003: Fix ProcessReverseStream usage in audioproc_f (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 | « webrtc/modules/audio_processing/test/aec_dump_based_simulator.cc ('k') | 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) 2016 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2016 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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 if (buffer_writer_) { 79 if (buffer_writer_) {
80 buffer_writer_->Write(*out_buf_); 80 buffer_writer_->Write(*out_buf_);
81 } 81 }
82 82
83 ++num_process_stream_calls_; 83 ++num_process_stream_calls_;
84 } 84 }
85 85
86 void AudioProcessingSimulator::ProcessReverseStream(bool fixed_interface) { 86 void AudioProcessingSimulator::ProcessReverseStream(bool fixed_interface) {
87 if (fixed_interface) { 87 if (fixed_interface) {
88 const auto st = ScopedTimer(mutable_proc_time()); 88 const auto st = ScopedTimer(mutable_proc_time());
89 RTC_CHECK_EQ(AudioProcessing::kNoError, ap_->ProcessStream(&rev_frame_)); 89 RTC_CHECK_EQ(AudioProcessing::kNoError,
90 ap_->ProcessReverseStream(&rev_frame_));
90 CopyFromAudioFrame(rev_frame_, reverse_out_buf_.get()); 91 CopyFromAudioFrame(rev_frame_, reverse_out_buf_.get());
91 92
92 } else { 93 } else {
93 const auto st = ScopedTimer(mutable_proc_time()); 94 const auto st = ScopedTimer(mutable_proc_time());
94 RTC_CHECK_EQ(AudioProcessing::kNoError, 95 RTC_CHECK_EQ(AudioProcessing::kNoError,
95 ap_->ProcessReverseStream( 96 ap_->ProcessReverseStream(
96 reverse_in_buf_->channels(), reverse_in_config_, 97 reverse_in_buf_->channels(), reverse_in_config_,
97 reverse_out_config_, reverse_out_buf_->channels())); 98 reverse_out_config_, reverse_out_buf_->channels()));
98 } 99 }
99 100
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after
325 size_t kMaxFilenameSize = AudioProcessing::kMaxFilenameSize; 326 size_t kMaxFilenameSize = AudioProcessing::kMaxFilenameSize;
326 RTC_CHECK_LE(settings_.aec_dump_output_filename->size(), kMaxFilenameSize); 327 RTC_CHECK_LE(settings_.aec_dump_output_filename->size(), kMaxFilenameSize);
327 RTC_CHECK_EQ(AudioProcessing::kNoError, 328 RTC_CHECK_EQ(AudioProcessing::kNoError,
328 ap_->StartDebugRecording( 329 ap_->StartDebugRecording(
329 settings_.aec_dump_output_filename->c_str(), -1)); 330 settings_.aec_dump_output_filename->c_str(), -1));
330 } 331 }
331 } 332 }
332 333
333 } // namespace test 334 } // namespace test
334 } // namespace webrtc 335 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/modules/audio_processing/test/aec_dump_based_simulator.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698