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

Unified 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, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webrtc/modules/audio_processing/residual_echo_detector.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/modules/audio_processing/residual_echo_detector.cc
diff --git a/webrtc/modules/audio_processing/residual_echo_detector.cc b/webrtc/modules/audio_processing/residual_echo_detector.cc
new file mode 100644
index 0000000000000000000000000000000000000000..df99de45bf50cece8681f45360e7791747ad2fb9
--- /dev/null
+++ b/webrtc/modules/audio_processing/residual_echo_detector.cc
@@ -0,0 +1,52 @@
+/*
+ * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved.
+ *
+ * Use of this source code is governed by a BSD-style license
+ * that can be found in the LICENSE file in the root of the source
+ * tree. An additional intellectual property rights grant can be found
+ * in the file PATENTS. All contributing project authors may
+ * be found in the AUTHORS file in the root of the source tree.
+ */
+
+#include "webrtc/modules/audio_processing/residual_echo_detector.h"
+
+#include "webrtc/modules/audio_processing/audio_buffer.h"
+
+namespace webrtc {
+
+ResidualEchoDetector::ResidualEchoDetector() = default;
+
+ResidualEchoDetector::~ResidualEchoDetector() = default;
+
+void ResidualEchoDetector::AnalyzeRenderAudio(
+ rtc::ArrayView<const float> render_audio) const {
+ // TODO(ivoc): Add implementation.
+}
+
+void ResidualEchoDetector::AnalyzeCaptureAudio(
+ rtc::ArrayView<const float> render_audio) {
+ // TODO(ivoc): Add implementation.
+}
+
+void ResidualEchoDetector::Initialize() {
+ // TODO(ivoc): Add implementation.
+}
+
+void ResidualEchoDetector::PackRenderAudioBuffer(
+ AudioBuffer* audio,
+ std::vector<float>* packed_buffer) {
+ RTC_DCHECK_GE(160u, audio->num_frames_per_band());
+
+ packed_buffer->clear();
+ packed_buffer->insert(packed_buffer->end(),
+ audio->split_bands_const_f(0)[kBand0To8kHz],
+ (audio->split_bands_const_f(0)[kBand0To8kHz] +
+ audio->num_frames_per_band()));
+}
+
+float ResidualEchoDetector::get_echo_likelihood() const {
+ // TODO(ivoc): Add implementation.
+ return 0.0f;
+}
+
+} // namespace webrtc
« 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