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

Side by Side Diff: webrtc/modules/audio_processing/residual_echo_detector.cc

Issue 2405403003: Add empty residual echo detector. (Closed)
Patch Set: Small update to comments. Created 4 years, 1 month 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/residual_echo_detector.h ('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
(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
11 #include "webrtc/modules/audio_processing/residual_echo_detector.h"
12
13 #include "webrtc/modules/audio_processing/audio_buffer.h"
14
15 namespace webrtc {
16
17 ResidualEchoDetector::ResidualEchoDetector() = default;
18
19 ResidualEchoDetector::~ResidualEchoDetector() = default;
20
21 void ResidualEchoDetector::AnalyzeRenderAudio(
22 rtc::ArrayView<const float> render_audio) const {
23 // TODO(ivoc): Add implementation.
24 }
25
26 void ResidualEchoDetector::AnalyzeCaptureAudio(
27 rtc::ArrayView<const float> render_audio) {
28 // TODO(ivoc): Add implementation.
29 }
30
31 void ResidualEchoDetector::Initialize() {
32 // TODO(ivoc): Add implementation.
33 }
34
35 void ResidualEchoDetector::PackRenderAudioBuffer(
36 AudioBuffer* audio,
37 std::vector<float>* packed_buffer) {
38 RTC_DCHECK_GE(160u, audio->num_frames_per_band());
39
40 packed_buffer->clear();
41 packed_buffer->insert(packed_buffer->end(),
42 audio->split_bands_const_f(0)[kBand0To8kHz],
43 (audio->split_bands_const_f(0)[kBand0To8kHz] +
44 audio->num_frames_per_band()));
45 }
46
47 float ResidualEchoDetector::get_echo_likelihood() const {
48 // TODO(ivoc): Add implementation.
49 return 0.0f;
50 }
51
52 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/modules/audio_processing/residual_echo_detector.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698