Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4483232f authored by Chung-yih Wang's avatar Chung-yih Wang
Browse files

Suppress harder for echo without affecting the volume of real voice.

Change-Id: Ia3ce98eedd487a9e879ff0a4907b8c15b5707429
parent a1bf0a06
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -157,6 +157,7 @@ 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;
        }