summaryrefslogtreecommitdiffstats
path: root/services
diff options
context:
space:
mode:
authorEric Laurent <elaurent@google.com>2014-09-03 13:48:34 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2014-09-03 13:48:34 +0000
commit9d1cad2ba6a35168fa27a322518150193f19e53b (patch)
treec67da2c76cd1db6d8367aa283ae59ca936948504 /services
parent3b75618d86159be2461baf495388d29e9651b632 (diff)
parent3d640e0a93e31bb53e671ed467774b63bb69750e (diff)
downloadframeworks_av-9d1cad2ba6a35168fa27a322518150193f19e53b.zip
frameworks_av-9d1cad2ba6a35168fa27a322518150193f19e53b.tar.gz
frameworks_av-9d1cad2ba6a35168fa27a322518150193f19e53b.tar.bz2
am 3d640e0a: am 97d547da: audio flinger: fix use of global effect buffer
* commit '3d640e0a93e31bb53e671ed467774b63bb69750e': audio flinger: fix use of global effect buffer
Diffstat (limited to 'services')
-rw-r--r--services/audioflinger/Threads.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/services/audioflinger/Threads.cpp b/services/audioflinger/Threads.cpp
index eb286ae..69936f8 100644
--- a/services/audioflinger/Threads.cpp
+++ b/services/audioflinger/Threads.cpp
@@ -3663,6 +3663,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