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

Unified Diff: webrtc/modules/audio_processing/residual_echo_detector.h

Issue 2503843004: Add a reliability term to the echo detector. (Closed)
Patch Set: Added function to set reliability directly for use in unittests. 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | webrtc/modules/audio_processing/residual_echo_detector.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/modules/audio_processing/residual_echo_detector.h
diff --git a/webrtc/modules/audio_processing/residual_echo_detector.h b/webrtc/modules/audio_processing/residual_echo_detector.h
index 37aa283b0869487e08a498961e292667f458c71e..e8f51cda3e2316be4882f76af3a1fadee472477c 100644
--- a/webrtc/modules/audio_processing/residual_echo_detector.h
+++ b/webrtc/modules/audio_processing/residual_echo_detector.h
@@ -37,6 +37,9 @@ class ResidualEchoDetector {
// This function should be called while holding the capture lock.
void Initialize();
+ // This function is for testing purposes only.
+ void SetReliabilityForTest(float value) { reliability_ = value; }
+
static void PackRenderAudioBuffer(AudioBuffer* audio,
std::vector<float>* packed_buffer);
@@ -71,6 +74,8 @@ class ResidualEchoDetector {
MeanVarianceEstimator capture_statistics_;
// Current echo likelihood.
float echo_likelihood_ = 0.f;
+ // Reliability of the current likelihood.
+ float reliability_ = 0.f;
};
} // namespace webrtc
« no previous file with comments | « no previous file | webrtc/modules/audio_processing/residual_echo_detector.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698