OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |