summaryrefslogtreecommitdiffstats
path: root/media/libeffects/lvm/wrapper/Bundle/EffectBundle.h
diff options
context:
space:
mode:
authorEric Laurent <elaurent@google.com>2010-09-28 14:09:57 -0700
committerEric Laurent <elaurent@google.com>2010-09-28 14:23:39 -0700
commitdac69110ed1073bf0a9827a3f78698896dd05d97 (patch)
treedb990d1cf1867854ffbf39585c0ce19e436c56b9 /media/libeffects/lvm/wrapper/Bundle/EffectBundle.h
parent036fad5034d05beecae19da6da46e1ce7be78e64 (diff)
downloadframeworks_av-dac69110ed1073bf0a9827a3f78698896dd05d97.zip
frameworks_av-dac69110ed1073bf0a9827a3f78698896dd05d97.tar.gz
frameworks_av-dac69110ed1073bf0a9827a3f78698896dd05d97.tar.bz2
Fix several audio effects problems.
Fixed the following issues in LVM effect bundle wrapper: - memory leaks in EffectCreate() in case effect creation fails at various stages - Added saturation when accumulating to output buffer - Fixed problems with enabled effects count when an effect is released while enabled - Do not allocate temporary buffer for accumulation each time process() is called Fixed the following issues in effects framework (AudioFlinger) - Release effect synchronously in the library when deleted from effect chain - Do not call the effect process function if no tracks are present in the same audio session Change-Id: Ifbd80a163415cfb3c0a337c12082853ea45d9c91
Diffstat (limited to 'media/libeffects/lvm/wrapper/Bundle/EffectBundle.h')
-rw-r--r--media/libeffects/lvm/wrapper/Bundle/EffectBundle.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/media/libeffects/lvm/wrapper/Bundle/EffectBundle.h b/media/libeffects/lvm/wrapper/Bundle/EffectBundle.h
index 91963af..2b51029 100644
--- a/media/libeffects/lvm/wrapper/Bundle/EffectBundle.h
+++ b/media/libeffects/lvm/wrapper/Bundle/EffectBundle.h
@@ -88,12 +88,13 @@ struct BundledEffectContext{
int positionSaved;
bool bMuteEnabled; /* Must store as mute = -96dB level */
bool bStereoPositionEnabled;
- int frameCount;
LVM_Fs_en SampleRate;
int SamplesPerSecond;
int SamplesToExitCountEq;
int SamplesToExitCountBb;
int SamplesToExitCountVirt;
+ LVM_INT16 *workBuffer;
+ int frameCount;
#ifdef LVM_PCM
FILE *PcmInPtr;
FILE *PcmOutPtr;