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

Commit 2473f947 authored by Chung-yih Wang's avatar Chung-yih Wang Committed by Android Git Automerger
Browse files

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

Merge commit '4b7ff734'

* commit '4b7ff734':
  Suppress harder for echo without affecting the volume of real voice.
parents 4475c0ed 4b7ff734
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -158,6 +158,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;
        }