summaryrefslogtreecommitdiffstats
path: root/services/audioflinger/AudioFlinger.h
diff options
context:
space:
mode:
authorEric Laurent <elaurent@google.com>2010-08-31 13:50:07 -0700
committerEric Laurent <elaurent@google.com>2010-08-31 15:26:23 -0700
commita92ebfa1cd96dc91174f68baab820dbed8239e4b (patch)
tree0279d11049f5bd1ff971b41c528dd05de9395839 /services/audioflinger/AudioFlinger.h
parent63070856d034a2819a26560bc7f2881e501c78b7 (diff)
downloadframeworks_base-a92ebfa1cd96dc91174f68baab820dbed8239e4b.zip
frameworks_base-a92ebfa1cd96dc91174f68baab820dbed8239e4b.tar.gz
frameworks_base-a92ebfa1cd96dc91174f68baab820dbed8239e4b.tar.bz2
Audio Effects: fix problems in volume control.
- Fixed click when re-enabling effect during the turn off phase: make sure the effect states where effect is processed are the same where volume control is delegated to effect. - Fixed click when effect is deleted while still active: do not apply volume ramp if an effect having volume control was just removed from the effect chain. Also fixed a crash when PCM dump is enabled in effect bundle wrapper. Change-Id: Ib562f5cf75c69af75df0e862536262e2514493e4
Diffstat (limited to 'services/audioflinger/AudioFlinger.h')
-rw-r--r--services/audioflinger/AudioFlinger.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/services/audioflinger/AudioFlinger.h b/services/audioflinger/AudioFlinger.h
index 51881f0..5917632 100644
--- a/services/audioflinger/AudioFlinger.h
+++ b/services/audioflinger/AudioFlinger.h
@@ -514,6 +514,7 @@ private:
int16_t *mMainBuffer;
int32_t *mAuxBuffer;
int mAuxEffectId;
+ bool mHasVolumeController;
}; // end of Track
@@ -965,6 +966,7 @@ private:
}
status_t setEnabled(bool enabled);
bool isEnabled();
+ bool isProcessEnabled();
void setInBuffer(int16_t *buffer) { mConfig.inputCfg.buffer.s16 = buffer; }
int16_t *inBuffer() { return mConfig.inputCfg.buffer.s16; }