am 4483232f: Suppress harder for echo without affecting the volume of real voice.

Merge commit '4483232f57ebdc444bf045120c302235a211e737' into gingerbread-plus-aosp

* commit '4483232f57ebdc444bf045120c302235a211e737':
  Suppress harder for echo without affecting the volume of real voice.
This commit is contained in:
Chung-yih Wang
2010-10-07 16:02:06 -07:00
committed by Android Git Automerger

View File

@@ -157,11 +157,12 @@ void EchoSuppressor::run(int16_t *playbacked, int16_t *recorded)
if (correlation > 0.3f) {
float factor = 1.0f - correlation;
factor *= factor;
factor /= 2.0; // suppress harder
for (int i = 0; i < mSampleCount; ++i) {
recorded[i] *= factor;
}
}
// LOGI("latency %5d, correlation %.10f", latency, correlation);
//LOGI("latency %5d, correlation %.10f", latency, correlation);
// Increase RecordOffset.