diff options
author | Glenn Kasten <gkasten@google.com> | 2013-11-20 16:37:38 -0800 |
---|---|---|
committer | Glenn Kasten <gkasten@google.com> | 2013-11-20 17:52:28 -0800 |
commit | 2b806406ac1ec680b6fe3aaa84c54bdc4e43ad8d (patch) | |
tree | b442aec39d3318a85e4eda692ced7fbc877df128 /services/audioflinger/Threads.h | |
parent | f10ffec18f930d92e1abe9200d60e746831841a7 (diff) | |
download | frameworks_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.h | 6 |
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() |