diff options
author | Eric Laurent <elaurent@google.com> | 2012-09-17 09:02:23 -0700 |
---|---|---|
committer | Eric Laurent <elaurent@google.com> | 2012-09-17 18:49:09 -0700 |
commit | c5cd686a83c6ea65a68d98023d5527fe4373d4e4 (patch) | |
tree | 4496f4c659bea583a12268d59e59ed6d976979bd /media/libeffects/lvm/wrapper/Bundle/EffectBundle.h | |
parent | b845c6b0c3066d6791973be830f0953477461a65 (diff) | |
download | frameworks_av-c5cd686a83c6ea65a68d98023d5527fe4373d4e4.zip frameworks_av-c5cd686a83c6ea65a68d98023d5527fe4373d4e4.tar.gz frameworks_av-c5cd686a83c6ea65a68d98023d5527fe4373d4e4.tar.bz2 |
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
Diffstat (limited to 'media/libeffects/lvm/wrapper/Bundle/EffectBundle.h')
-rw-r--r-- | media/libeffects/lvm/wrapper/Bundle/EffectBundle.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/media/libeffects/lvm/wrapper/Bundle/EffectBundle.h b/media/libeffects/lvm/wrapper/Bundle/EffectBundle.h index 9c58ecd..330bb32 100644 --- a/media/libeffects/lvm/wrapper/Bundle/EffectBundle.h +++ b/media/libeffects/lvm/wrapper/Bundle/EffectBundle.h @@ -38,7 +38,6 @@ extern "C" { #define VOLUME_CUP_LOAD_ARM9E 0 // Expressed in 0.1 MIPS #define BUNDLE_MEM_USAGE 25 // Expressed in kB //#define LVM_PCM -#define MAX_BAND_GAIN_DB 4 #ifndef OPENSL_ES_H_ static const effect_uuid_t SL_IID_VOLUME_ = { 0x09e8ede0, 0xddde, 0x11db, 0xb4f6, @@ -97,6 +96,7 @@ struct BundledEffectContext{ LVM_INT16 *workBuffer; int frameCount; int32_t bandGaindB[FIVEBAND_NUMBANDS]; + int volume; #ifdef LVM_PCM FILE *PcmInPtr; FILE *PcmOutPtr; |