diff options
author | Eric Laurent <elaurent@google.com> | 2010-08-31 13:50:07 -0700 |
---|---|---|
committer | Eric Laurent <elaurent@google.com> | 2010-08-31 15:26:23 -0700 |
commit | 8f45bd725549436eeacd12ee69349e2332ed8da5 (patch) | |
tree | d1f48f9af5991d462fb22fb37a5dd0a3d7f2251a /services/audioflinger/AudioFlinger.h | |
parent | 06124758ff402512f3c7a5fb2b35d8d09a0d6c2e (diff) | |
download | frameworks_av-8f45bd725549436eeacd12ee69349e2332ed8da5.zip frameworks_av-8f45bd725549436eeacd12ee69349e2332ed8da5.tar.gz frameworks_av-8f45bd725549436eeacd12ee69349e2332ed8da5.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.h | 2 |
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; } |