summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--services/audioflinger/Effects.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/services/audioflinger/Effects.cpp b/services/audioflinger/Effects.cpp
index 54ca6c3..19fc942 100644
--- a/services/audioflinger/Effects.cpp
+++ b/services/audioflinger/Effects.cpp
@@ -1462,14 +1462,14 @@ void AudioFlinger::EffectChain::process_l()
}
size_t size = mEffects.size();
+ for (size_t i = 0; i < size; i++) {
+ mEffects[i]->updateState();
+ }
if (doProcess) {
for (size_t i = 0; i < size; i++) {
mEffects[i]->process();
}
}
- for (size_t i = 0; i < size; i++) {
- mEffects[i]->updateState();
- }
}
// addEffect_l() must be called with PlaybackThread::mLock held