summaryrefslogtreecommitdiffstats
path: root/services/audioflinger/AudioFlinger.h
diff options
context:
space:
mode:
authorEric Laurent <elaurent@google.com>2010-07-19 06:24:46 -0700
committerEric Laurent <elaurent@google.com>2010-07-19 06:31:30 -0700
commit0d7e048cf2e38d32568261760aef82d1ee145126 (patch)
tree8cc4ce1bd601dae9c7f98d0235ff2be3a28275cf /services/audioflinger/AudioFlinger.h
parentfaf775e772e329e821d81ba735474df097b1e1e9 (diff)
downloadframeworks_base-0d7e048cf2e38d32568261760aef82d1ee145126.zip
frameworks_base-0d7e048cf2e38d32568261760aef82d1ee145126.tar.gz
frameworks_base-0d7e048cf2e38d32568261760aef82d1ee145126.tar.bz2
Fixed problems in audio effect volume control.
Fixed the following problems in audio effect volume control in AudioFlinger: - Make sure that the volumes returned by EffectChain::setVolume_l() are correct even is no change is detected since last call - Do not use isEnabled() to validate volume control but mState >= ACTIVE instead as the volume control must be also active in STOPPING and STOPPED states. Change-Id: Id62da3164fad500ee8a5efd6cd78c77e8fdcb541
Diffstat (limited to 'services/audioflinger/AudioFlinger.h')
-rw-r--r--services/audioflinger/AudioFlinger.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/services/audioflinger/AudioFlinger.h b/services/audioflinger/AudioFlinger.h
index 4507a48..99816f9 100644
--- a/services/audioflinger/AudioFlinger.h
+++ b/services/audioflinger/AudioFlinger.h
@@ -1110,6 +1110,9 @@ private:
int mVolumeCtrlIdx; // index of insert effect having control over volume
uint32_t mLeftVolume; // previous volume on left channel
uint32_t mRightVolume; // previous volume on right channel
+ uint32_t mNewLeftVolume; // new volume on left channel
+ uint32_t mNewRightVolume; // new volume on right channel
+
};
friend class RecordThread;