OSDN Git Service

Fix device management in lvm effect bundle wrapper.
authorEric Laurent <elaurent@google.com>
Tue, 1 Nov 2011 01:48:15 +0000 (18:48 -0700)
committerEric Laurent <elaurent@google.com>
Tue, 1 Nov 2011 16:12:19 +0000 (09:12 -0700)
commitb0c6e3bcf1443f9e185e92dc3833e60158b1197e
tree29fe49ef1460ebbd0b77ab22ecdd7f75a4ba14b8
parent62015f5d0d1104dfc682b3eb3b6c0be4f63b985a
Fix device management in lvm effect bundle wrapper.

The virtualizer and bass boost effects should be disabled when
not playing throught headsets or headphones.

There is a bug in current wrapper implementation that makes that those
effects are not disabled if the effect is enabled by the user after
the headset has been removed (current logic only works if the device selection
occurs while the effect is enabled).

Change-Id: I7c66b15a0339d95fb9ed13c8320d66379725d3b6
media/libeffects/lvm/wrapper/Bundle/EffectBundle.cpp