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

Commit 97d547da authored by Eric Laurent's avatar Eric Laurent
Browse files

audio flinger: fix use of global effect buffer

When float mixing format is enabled, audio effects use a specific
buffer in 16 bit format. This buffer was not enabled when only
global effects were present resulting in the mixer accumulating directly
to the output sink buffer.

Bug: 16202259.
Change-Id: I3537d36c63196d97772f0ab22dd31d04dfa7fdd6
parent b72726ba
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -3662,6 +3662,10 @@ track_is_ready: ;
    // remove all the tracks that need to be...
    removeTracks_l(*tracksToRemove);

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

    // 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