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_; |