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

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: Fixed memcpy 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..fbef5241df054ffad16f092522bc7969d3e4f595 100644
--- a/webrtc/modules/audio_processing/intelligibility/intelligibility_utils.h
+++ b/webrtc/modules/audio_processing/intelligibility/intelligibility_utils.h
@@ -125,7 +125,7 @@ class VarianceArray {
rtc::scoped_ptr<float[]> variance_;
rtc::scoped_ptr<float[]> conj_sum_;
- const int freqs_;
+ const int num_freqs_;
const int window_size_;
const float decay_;
int history_cursor_;
@@ -147,11 +147,17 @@ 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();
turaj 2015/07/27 20:01:05 This method is constant.
+
// Return the current target gain set. Modify this array to set the targets.
float* target() const { return target_.get(); }
private:
- const int freqs_;
+ const int num_freqs_;
const float change_limit_;
rtc::scoped_ptr<float[]> target_;
rtc::scoped_ptr<float[]> current_;

Powered by Google App Engine
This is Rietveld 408576698