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

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

Issue 2584493002: Added first layer of the echo canceller 3 functionality (Closed)
Patch Set: Changes in response to reviewer comments Created 3 years, 12 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
(Empty)
1 /*
2 * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved.
3 *
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
6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree.
9 */
10 #include "webrtc/modules/audio_processing/aec3/block_processor.h"
11
12 #include "webrtc/base/atomicops.h"
13 #include "webrtc/base/optional.h"
14
15 namespace webrtc {
16
17 BlockProcessor* BlockProcessor::Create(int sample_rate_hz, size_t num_bands) {
18 return new BlockProcessorImpl(sample_rate_hz, num_bands);
19 }
20
21 int BlockProcessorImpl::instance_count_ = 0;
22
23 BlockProcessorImpl::BlockProcessorImpl(int sample_rate_hz, size_t num_bands)
24 : data_dumper_(new ApmDataDumper(instance_count_)) {
25 instance_count_ = rtc::AtomicOps::Increment(&instance_count_);
26 }
27
28 BlockProcessorImpl::~BlockProcessorImpl() = default;
29
30 void BlockProcessorImpl::ProcessCapture(
31 bool known_echo_path_change,
32 bool saturated_microphone_signal,
33 std::vector<std::vector<float>>* capture_block) {}
34
35 bool BlockProcessorImpl::BufferRender(std::vector<std::vector<float>>* block) {
36 return false;
37 }
38
39 void BlockProcessorImpl::ReportEchoLeakage(bool leakage_detected) {}
40
41 } // namespace webrtc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698