summaryrefslogtreecommitdiffstats
path: root/services/audioflinger/Threads.h
diff options
context:
space:
mode:
authorGlenn Kasten <gkasten@google.com>2013-11-20 16:37:38 -0800
committerGlenn Kasten <gkasten@google.com>2013-11-20 17:52:28 -0800
commit2b806406ac1ec680b6fe3aaa84c54bdc4e43ad8d (patch)
treeb442aec39d3318a85e4eda692ced7fbc877df128 /services/audioflinger/Threads.h
parentf10ffec18f930d92e1abe9200d60e746831841a7 (diff)
downloadframeworks_av-2b806406ac1ec680b6fe3aaa84c54bdc4e43ad8d.zip
frameworks_av-2b806406ac1ec680b6fe3aaa84c54bdc4e43ad8d.tar.gz
frameworks_av-2b806406ac1ec680b6fe3aaa84c54bdc4e43ad8d.tar.bz2
Change mActiveTrack to mActiveTracks vector
The size of mActiveTracks is still limited to 1 for now. Change-Id: Ia6b06b25d8c4709f087110ae29c589999407a2a2
Diffstat (limited to 'services/audioflinger/Threads.h')
-rw-r--r--services/audioflinger/Threads.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/services/audioflinger/Threads.h b/services/audioflinger/Threads.h
index d31009e..6b81c38 100644
--- a/services/audioflinger/Threads.h
+++ b/services/audioflinger/Threads.h
@@ -938,9 +938,11 @@ private:
AudioStreamIn *mInput;
SortedVector < sp<RecordTrack> > mTracks;
- // mActiveTrack has dual roles: it indicates the current active track, and
+ // mActiveTracks has dual roles: it indicates the current active track(s), and
// is used together with mStartStopCond to indicate start()/stop() progress
- sp<RecordTrack> mActiveTrack;
+ SortedVector< sp<RecordTrack> > mActiveTracks;
+ // generation counter for mActiveTracks
+ int mActiveTracksGen;
Condition mStartStopCond;
// updated by RecordThread::readInputParameters()