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

Side by Side Diff: webrtc/modules/audio_processing/aec3/echo_canceller3.cc

Issue 2810533003: Removed workaround for the WARN_UNUSED_RESULT issue. (Closed)
Patch Set: Created 3 years, 8 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) 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 #include "webrtc/modules/audio_processing/aec3/echo_canceller3.h" 10 #include "webrtc/modules/audio_processing/aec3/echo_canceller3.h"
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 &input->split_bands_f(0)[0][0], 188 &input->split_bands_f(0)[0][0],
189 LowestBandRate(sample_rate_hz_), 1); 189 LowestBandRate(sample_rate_hz_), 1);
190 190
191 CopyBufferIntoFrame(input, num_bands_, frame_length_, 191 CopyBufferIntoFrame(input, num_bands_, frame_length_,
192 &render_queue_input_frame_); 192 &render_queue_input_frame_);
193 193
194 if (render_highpass_filter_) { 194 if (render_highpass_filter_) {
195 render_highpass_filter_->Process(render_queue_input_frame_[0]); 195 render_highpass_filter_->Process(render_queue_input_frame_[0]);
196 } 196 }
197 197
198 // TODO(peah): Change this two-step static cast once the CL for handling the 198 static_cast<void>(render_transfer_queue_->Insert(&render_queue_input_frame_));
199 // bug causing this to fail in cc has landed.
200 bool result = render_transfer_queue_->Insert(&render_queue_input_frame_);
201 static_cast<void>(result);
202 } 199 }
203 200
204 int EchoCanceller3::instance_count_ = 0; 201 int EchoCanceller3::instance_count_ = 0;
205 202
206 EchoCanceller3::EchoCanceller3(int sample_rate_hz, bool use_highpass_filter) 203 EchoCanceller3::EchoCanceller3(int sample_rate_hz, bool use_highpass_filter)
207 : EchoCanceller3(sample_rate_hz, 204 : EchoCanceller3(sample_rate_hz,
208 use_highpass_filter, 205 use_highpass_filter,
209 std::unique_ptr<BlockProcessor>( 206 std::unique_ptr<BlockProcessor>(
210 BlockProcessor::Create(sample_rate_hz))) {} 207 BlockProcessor::Create(sample_rate_hz))) {}
211 EchoCanceller3::EchoCanceller3(int sample_rate_hz, 208 EchoCanceller3::EchoCanceller3(int sample_rate_hz,
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
353 350
354 BufferRemainingRenderFrameContent(&render_blocker_, block_processor_.get(), 351 BufferRemainingRenderFrameContent(&render_blocker_, block_processor_.get(),
355 &block_); 352 &block_);
356 353
357 frame_to_buffer = 354 frame_to_buffer =
358 render_transfer_queue_.Remove(&render_queue_output_frame_); 355 render_transfer_queue_.Remove(&render_queue_output_frame_);
359 } 356 }
360 } 357 }
361 358
362 } // namespace webrtc 359 } // namespace webrtc
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