diff options
author | Eric Laurent <elaurent@google.com> | 2014-12-17 18:04:15 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2014-12-17 18:04:15 +0000 |
commit | 85aca658ac7d20584b0647427256df50a5f243ef (patch) | |
tree | 0a368cd14a99953de3943fa6f43334a8aea9f19f /services/audioflinger/Threads.h | |
parent | 22dfb93254de370d401706728aba1f032ef1b172 (diff) | |
parent | d33712d7ec5dcf427cc0be9b7d2ca1c99823c8e6 (diff) | |
download | frameworks_av-85aca658ac7d20584b0647427256df50a5f243ef.zip frameworks_av-85aca658ac7d20584b0647427256df50a5f243ef.tar.gz frameworks_av-85aca658ac7d20584b0647427256df50a5f243ef.tar.bz2 |
am d33712d7: am 145cf5d8: Merge "audioflinger: implement pause/resume for direct outputs" into lmp-mr1-dev
* commit 'd33712d7ec5dcf427cc0be9b7d2ca1c99823c8e6':
audioflinger: implement pause/resume for direct outputs
Diffstat (limited to 'services/audioflinger/Threads.h')
-rw-r--r-- | services/audioflinger/Threads.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/services/audioflinger/Threads.h b/services/audioflinger/Threads.h index 119e495..f5d0e27 100644 --- a/services/audioflinger/Threads.h +++ b/services/audioflinger/Threads.h @@ -809,7 +809,9 @@ public: protected: // accessed by both binder threads and within threadLoop(), lock on mutex needed unsigned mFastTrackAvailMask; // bit i set if fast track [i] is available - + bool mHwSupportsPause; + bool mHwPaused; + bool mFlushPending; private: // timestamp latch: // D input is written by threadLoop_write while mutex is unlocked, and read while locked @@ -910,6 +912,8 @@ protected: virtual mixer_state prepareTracks_l(Vector< sp<Track> > *tracksToRemove); virtual void threadLoop_mix(); virtual void threadLoop_sleepTime(); + virtual void threadLoop_exit(); + virtual bool shouldStandby_l(); // volumes last sent to audio HAL with stream->set_volume() float mLeftVolFloat; @@ -940,12 +944,9 @@ protected: virtual bool waitingAsyncCallback(); virtual bool waitingAsyncCallback_l(); - virtual bool shouldStandby_l(); virtual void onAddNewTrack_l(); private: - bool mHwPaused; - bool mFlushPending; size_t mPausedWriteLength; // length in bytes of write interrupted by pause size_t mPausedBytesRemaining; // bytes still waiting in mixbuffer after resume wp<Track> mPreviousTrack; // used to detect track switch |