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

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

Issue 2611223003: Adding second layer of the echo canceller 3 functionality. (Closed)
Patch Set: Disabled DEATH tests that were causing memory leakage reports on test bots Created 3 years, 11 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/BUILD.gn ('k') | webrtc/modules/audio_processing/aec3/block_processor.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/modules/audio_processing/aec3/block_processor.h
diff --git a/webrtc/modules/audio_processing/aec3/block_processor.h b/webrtc/modules/audio_processing/aec3/block_processor.h
index b84b18df81a24fe1cf7ec6329189a7d67001f04b..12a994e609d6103cc4bb9d00350f09949f314040 100644
--- a/webrtc/modules/audio_processing/aec3/block_processor.h
+++ b/webrtc/modules/audio_processing/aec3/block_processor.h
@@ -14,8 +14,9 @@
#include <memory>
#include <vector>
-#include "webrtc/base/constructormagic.h"
-#include "webrtc/modules/audio_processing/logging/apm_data_dumper.h"
+#include "webrtc/modules/audio_processing/aec3/echo_remover.h"
+#include "webrtc/modules/audio_processing/aec3/render_delay_buffer.h"
+#include "webrtc/modules/audio_processing/aec3/render_delay_controller.h"
namespace webrtc {
@@ -23,20 +24,31 @@ namespace webrtc {
class BlockProcessor {
public:
static BlockProcessor* Create(int sample_rate_hz);
+ // Only used for testing purposes.
+ static BlockProcessor* Create(
+ int sample_rate_hz,
+ std::unique_ptr<RenderDelayBuffer> render_buffer);
+ static BlockProcessor* Create(
+ int sample_rate_hz,
+ std::unique_ptr<RenderDelayBuffer> render_buffer,
+ std::unique_ptr<RenderDelayController> delay_controller,
+ std::unique_ptr<EchoRemover> echo_remover);
+
virtual ~BlockProcessor() = default;
// Processes a block of capture data.
virtual void ProcessCapture(
- bool known_echo_path_change,
- bool saturated_microphone_signal,
+ bool echo_path_gain_change,
+ bool capture_signal_saturation,
std::vector<std::vector<float>>* capture_block) = 0;
- // Buffers a block of render data supplied by a FrameBlocker object.
+ // Buffers a block of render data supplied by a FrameBlocker object. Returns a
+ // bool indicating the success of the buffering.
virtual bool BufferRender(std::vector<std::vector<float>>* render_block) = 0;
// Reports whether echo leakage has been detected in the echo canceller
// output.
- virtual void ReportEchoLeakage(bool leakage_detected) = 0;
+ virtual void UpdateEchoLeakageStatus(bool leakage_detected) = 0;
};
} // namespace webrtc
« no previous file with comments | « webrtc/modules/audio_processing/BUILD.gn ('k') | webrtc/modules/audio_processing/aec3/block_processor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698