OSDN Git Service

Fix issue 5381089: problem with A2DP music volume
authorEric Laurent <elaurent@google.com>
Thu, 6 Oct 2011 00:42:25 +0000 (17:42 -0700)
committerEric Laurent <elaurent@google.com>
Thu, 6 Oct 2011 00:42:25 +0000 (17:42 -0700)
commitec35a1416472865dbebc22b10199ad718ed2cc95
treedcd10e214322dae22492b8a49209fdfb4b33c30f
parentd20bf0676d6db8f12edcd2307f82409c076c7015
Fix issue 5381089: problem with A2DP music volume

This problem only occurs when audio effects are present and
the music volume is applied by one effect engine.
When connecting or disconnecting A2DP, audio effects are moved from
one mixer thread to another. When removed from the source thread,
the effect is stopped but it is not restarted when added to the
destination thread.
This regression was introduced by commit 21b5c47e.

Change-Id: I4cc578d8d760ec65b185032b6fda98c739d331bc
services/audioflinger/AudioFlinger.cpp
services/audioflinger/AudioFlinger.h