diff options
author | Gabriele M <moto.falcon.git@gmail.com> | 2016-01-23 00:06:41 +0100 |
---|---|---|
committer | Steve Kondik <shade@chemlab.org> | 2016-01-23 23:47:09 -0800 |
commit | 554bc677837d05f5052592044f77e4de78520a04 (patch) | |
tree | 20ef3a97997deba4f8c3d28af25dfed3a24b9925 /services/audioflinger | |
parent | 214a19495ddd3d837f72ed1ee49c36d50d55fe5d (diff) | |
download | frameworks_av-554bc677837d05f5052592044f77e4de78520a04.zip frameworks_av-554bc677837d05f5052592044f77e4de78520a04.tar.gz frameworks_av-554bc677837d05f5052592044f77e4de78520a04.tar.bz2 |
Revert "Audio Effects are not processing first buffer"
This causes a short and loud noise when turning off effects while
an audio track is playing or when an audio track is started with
audio effects enabled. The noise appears to be non-existent if the
volume level is set to its maximum.
This reverts commit d15a8bd157cb531716bd3e15561f557e74588801.
Change-Id: I2b8dd3447d673b4b98018710bc10c1eeb282598e
Diffstat (limited to 'services/audioflinger')
-rw-r--r-- | services/audioflinger/Effects.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/services/audioflinger/Effects.cpp b/services/audioflinger/Effects.cpp index fb1e80c..879b6c9 100644 --- a/services/audioflinger/Effects.cpp +++ b/services/audioflinger/Effects.cpp @@ -1466,14 +1466,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 |