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

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

Issue 3011943002: Move optional.h to webrtc/api/ (Closed)
Patch Set: Created 3 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) 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/block_processor.h" 10 #include "webrtc/modules/audio_processing/aec3/block_processor.h"
11 11
12 #include "webrtc/api/optional.h"
12 #include "webrtc/modules/audio_processing/aec3/aec3_common.h" 13 #include "webrtc/modules/audio_processing/aec3/aec3_common.h"
13 #include "webrtc/modules/audio_processing/aec3/block_processor_metrics.h" 14 #include "webrtc/modules/audio_processing/aec3/block_processor_metrics.h"
14 #include "webrtc/modules/audio_processing/aec3/echo_path_variability.h" 15 #include "webrtc/modules/audio_processing/aec3/echo_path_variability.h"
15 #include "webrtc/modules/audio_processing/logging/apm_data_dumper.h" 16 #include "webrtc/modules/audio_processing/logging/apm_data_dumper.h"
16 #include "webrtc/rtc_base/atomicops.h" 17 #include "webrtc/rtc_base/atomicops.h"
17 #include "webrtc/rtc_base/constructormagic.h" 18 #include "webrtc/rtc_base/constructormagic.h"
18 #include "webrtc/rtc_base/optional.h"
19 19
20 namespace webrtc { 20 namespace webrtc {
21 namespace { 21 namespace {
22 22
23 enum class BlockProcessorApiCall { kCapture, kRender }; 23 enum class BlockProcessorApiCall { kCapture, kRender };
24 24
25 class BlockProcessorImpl final : public BlockProcessor { 25 class BlockProcessorImpl final : public BlockProcessor {
26 public: 26 public:
27 BlockProcessorImpl(int sample_rate_hz, 27 BlockProcessorImpl(int sample_rate_hz,
28 std::unique_ptr<RenderDelayBuffer> render_buffer, 28 std::unique_ptr<RenderDelayBuffer> render_buffer,
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 int sample_rate_hz, 205 int sample_rate_hz,
206 std::unique_ptr<RenderDelayBuffer> render_buffer, 206 std::unique_ptr<RenderDelayBuffer> render_buffer,
207 std::unique_ptr<RenderDelayController> delay_controller, 207 std::unique_ptr<RenderDelayController> delay_controller,
208 std::unique_ptr<EchoRemover> echo_remover) { 208 std::unique_ptr<EchoRemover> echo_remover) {
209 return new BlockProcessorImpl(sample_rate_hz, std::move(render_buffer), 209 return new BlockProcessorImpl(sample_rate_hz, std::move(render_buffer),
210 std::move(delay_controller), 210 std::move(delay_controller),
211 std::move(echo_remover)); 211 std::move(echo_remover));
212 } 212 }
213 213
214 } // namespace webrtc 214 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/modules/audio_processing/aec3/aec_state.h ('k') | webrtc/modules/audio_processing/aec3/echo_path_delay_estimator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698