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

Unified Diff: webrtc/modules/audio_processing/intelligibility/intelligibility_utils.h

Issue 1234463003: Integrate Intelligibility with APM (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Updated interface, how VAD is used, other issues Created 5 years, 5 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
Index: webrtc/modules/audio_processing/intelligibility/intelligibility_utils.h
diff --git a/webrtc/modules/audio_processing/intelligibility/intelligibility_utils.h b/webrtc/modules/audio_processing/intelligibility/intelligibility_utils.h
index 9908ac0456f1974f263a42e33a5124f5a3f9c33a..2d901e4ba09f69d2522248e44916484484d70f45 100644
--- a/webrtc/modules/audio_processing/intelligibility/intelligibility_utils.h
+++ b/webrtc/modules/audio_processing/intelligibility/intelligibility_utils.h
@@ -147,6 +147,12 @@ class GainApplier {
void Apply(const std::complex<float>* in_block,
std::complex<float>* out_block);
+ // Resets all target gain factors to 1.
+ void Clear();
+
+ // Returns true if all current and target gain factors are 1.
+ bool IsIdentity();
+
// Return the current target gain set. Modify this array to set the targets.
float* target() const { return target_.get(); }

Powered by Google App Engine
This is Rietveld 408576698