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

Unified Diff: webrtc/modules/audio_processing/aec3/echo_canceller3.h

Issue 2567513003: Added basic framework for AEC3 in the audio processing module (Closed)
Patch Set: Changes in response to reviewer comments Created 4 years 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
Index: webrtc/modules/audio_processing/aec3/echo_canceller3.h
diff --git a/webrtc/modules/audio_processing/aec3/echo_canceller3.h b/webrtc/modules/audio_processing/aec3/echo_canceller3.h
new file mode 100644
index 0000000000000000000000000000000000000000..c65ecdea758b309e8a5b1d439825600c9f78de45
--- /dev/null
+++ b/webrtc/modules/audio_processing/aec3/echo_canceller3.h
@@ -0,0 +1,48 @@
+/*
+ * 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.
+ */
+
+#ifndef WEBRTC_MODULES_AUDIO_PROCESSING_AEC3_ECHO_CANCELLER3_H_
+#define WEBRTC_MODULES_AUDIO_PROCESSING_AEC3_ECHO_CANCELLER3_H_
+
+#include <string>
+
+#include "webrtc/base/constructormagic.h"
+#include "webrtc/modules/audio_processing/audio_buffer.h"
+
+namespace webrtc {
+
+class EchoCanceller3 {
+ public:
+ EchoCanceller3(int sample_rate_hz, bool use_anti_hum_filter);
+ ~EchoCanceller3();
+ // Analyzes and stores an internal copy of the split-band domain render
+ // signal.
+ bool AnalyzeRender(AudioBuffer* farend);
+ // Analyzes the full-band domain capture signal to detect signal saturation.
+ void AnalyzeCapture(AudioBuffer* capture);
+ // Processes the split-band domain capture signal in order to remove any echo
+ // present in the signal.
+ void ProcessCapture(AudioBuffer* capture, bool known_echo_path_change);
+
+ // Validates a config.
+ static bool Validate(const AudioProcessing::Config::EchoCanceller3& config);
+ // Dumps a config to a string.
+ static std::string ToString(
+ const AudioProcessing::Config::EchoCanceller3& config);
+
+ private:
+ static int instance_count_;
+ size_t frame_length_;
+
+ RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(EchoCanceller3);
+};
+} // namespace webrtc
+
+#endif // WEBRTC_MODULES_AUDIO_PROCESSING_AEC3_ECHO_CANCELLER3_H_
« no previous file with comments | « webrtc/modules/audio_processing/aec/aec_core.cc ('k') | webrtc/modules/audio_processing/aec3/echo_canceller3.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698