OSDN Git Service

audioflinger: fix failure to indicate volume to effect
authorEric Laurent <elaurent@google.com>
Wed, 1 Oct 2014 21:26:10 +0000 (14:26 -0700)
committerEric Laurent <elaurent@google.com>
Wed, 1 Oct 2014 23:52:30 +0000 (16:52 -0700)
commitcb4b6e9f05d1c0b3fcc5be5ebe3f7d6f32669b1a
tree7bf2965353146579d1af3a5015ec468029d1f5dc
parenta49c94ea49c8329a1bdefe980e1f7d335c0d1ec5
audioflinger: fix failure to indicate volume to effect

If an effect is added and enabled after a track is started
it will not receive current volume information because volume
is indicated only to active effects and if there is a volume change.

Add a flag to force EffectChain::setVolume_l() to pass volume indication
to all effects each time an effect is enabled.

Bug: 17572556.

Change-Id: I6b68488c9aca8b2095fb210aa124d02e4f759660
services/audioflinger/Effects.cpp
services/audioflinger/Effects.h