diff options
author | Marco Nelissen <marcone@google.com> | 2014-10-20 13:15:38 -0700 |
---|---|---|
committer | Marco Nelissen <marcone@google.com> | 2014-10-20 13:15:38 -0700 |
commit | ac302143551a8b964f026385a524dda9ff8ea5ba (patch) | |
tree | 7c32fc205e52cb690abd0e7bbe46c749eac38b48 /services/audioflinger | |
parent | 22bc10a347569a0ab2980c24783e31aba4d7414d (diff) | |
download | frameworks_av-ac302143551a8b964f026385a524dda9ff8ea5ba.zip frameworks_av-ac302143551a8b964f026385a524dda9ff8ea5ba.tar.gz frameworks_av-ac302143551a8b964f026385a524dda9ff8ea5ba.tar.bz2 |
Fix the fix
We need to clear the buffer a little more often.
Bug: 18023017
Change-Id: If8a522b9133a4269e2435af8958f6ced322e71e9
Diffstat (limited to 'services/audioflinger')
-rw-r--r-- | services/audioflinger/Threads.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/services/audioflinger/Threads.cpp b/services/audioflinger/Threads.cpp index fa20752..e443476 100644 --- a/services/audioflinger/Threads.cpp +++ b/services/audioflinger/Threads.cpp @@ -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 |