OSDN Git Service

Fix THD with max user EQ preset volume again
authorEric Laurent <elaurent@google.com>
Mon, 17 Sep 2012 16:02:23 +0000 (09:02 -0700)
committerEric Laurent <elaurent@google.com>
Tue, 18 Sep 2012 01:49:09 +0000 (18:49 -0700)
commit0ee916f1f69c2d69e02a8de1e5cd5a2e9d0a0782
tree81a8353326b409393a6d9167ded988affcd1a164
parent482136a5f977056eeffe2aa58d31ce395be562a3
Fix THD with max user EQ preset volume again

There was a problem with previous fix in 1b6c677c where
the THD was good for max volume but bad for intermediate
high volume values.

This fix does not limit the band gains but apply a correction
to the effect bundle volume to take into account not only the
maximum band gain but also the average band gains weighted
by the proximity of each band to the max gain band.

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