summaryrefslogtreecommitdiffstats
path: root/media/libeffects/lvm/wrapper/Bundle/EffectBundle.h
diff options
context:
space:
mode:
authorEric Laurent <elaurent@google.com>2012-09-10 16:27:35 -0700
committerEric Laurent <elaurent@google.com>2012-09-10 18:21:27 -0700
commit1b6c677c4bad5c1aea4f01277cf5aa234ad4cab4 (patch)
treee8fa7869cee2cb02922ea342ef74d03fe6bb3526 /media/libeffects/lvm/wrapper/Bundle/EffectBundle.h
parentfd48021dfc3278b048ba99ecffe7f996751fb440 (diff)
downloadframeworks_av-1b6c677c4bad5c1aea4f01277cf5aa234ad4cab4.zip
frameworks_av-1b6c677c4bad5c1aea4f01277cf5aa234ad4cab4.tar.gz
frameworks_av-1b6c677c4bad5c1aea4f01277cf5aa234ad4cab4.tar.bz2
Limit maximum equalizer gain.
Limit maximum gain in all EQ bands according to current volume so that total gain (current volume + band gain) does not exceed a certain limit. The gain difference between bands is preserved. Change-Id: Ice5a9705a0b3353e8778b4c539a29ca9cdf60390
Diffstat (limited to 'media/libeffects/lvm/wrapper/Bundle/EffectBundle.h')
-rw-r--r--media/libeffects/lvm/wrapper/Bundle/EffectBundle.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/media/libeffects/lvm/wrapper/Bundle/EffectBundle.h b/media/libeffects/lvm/wrapper/Bundle/EffectBundle.h
index 5634ca1..9c58ecd 100644
--- a/media/libeffects/lvm/wrapper/Bundle/EffectBundle.h
+++ b/media/libeffects/lvm/wrapper/Bundle/EffectBundle.h
@@ -38,6 +38,7 @@ 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,
@@ -95,6 +96,7 @@ struct BundledEffectContext{
int SamplesToExitCountVirt;
LVM_INT16 *workBuffer;
int frameCount;
+ int32_t bandGaindB[FIVEBAND_NUMBANDS];
#ifdef LVM_PCM
FILE *PcmInPtr;
FILE *PcmOutPtr;