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

Commit 5cc72274 authored by Marco Nelissen's avatar Marco Nelissen Committed by Android Git Automerger
Browse files

am d61ba0aa: am 36d9256f: am ac302143: Fix the fix

* commit 'd61ba0aa':
  Fix the fix
parents 0c2c1619 d61ba0aa
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -3670,11 +3670,13 @@ track_is_ready: ;

    if (getEffectChain_l(AUDIO_SESSION_OUTPUT_MIX) != 0) {
        mEffectBufferValid = true;
    }

    if (mEffectBufferValid) {
        // as long as there are effects we should clear the effects buffer, to avoid
        // passing a non-clean buffer to the effect chain
        memset(mEffectBuffer, 0, mEffectBufferSize);
    }

    // sink or mix buffer must be cleared if all tracks are connected to an
    // effect chain as in this case the mixer will not write to the sink or mix buffer
    // and track effects will accumulate into it