summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorAndy Hung <hunga@google.com>2015-01-07 23:41:45 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2015-01-07 23:41:45 +0000
commit2326ed104477a80c850eb3cef6a7039f1585a69d (patch)
tree62357b1335a065661ce118788c6965fb487a09be /include
parentbb67a2e8942620240531b5d157d376fa3fa049af (diff)
parent3c09c78aabcb9d314dfb400258fb99a37c7b50c9 (diff)
downloadframeworks_av-2326ed104477a80c850eb3cef6a7039f1585a69d.zip
frameworks_av-2326ed104477a80c850eb3cef6a7039f1585a69d.tar.gz
frameworks_av-2326ed104477a80c850eb3cef6a7039f1585a69d.tar.bz2
Merge "Event driven wake for AudioTrackThread notification changes"
Diffstat (limited to 'include')
-rw-r--r--include/media/AudioTrack.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/media/AudioTrack.h b/include/media/AudioTrack.h
index c995bd2..d602ee4 100644
--- a/include/media/AudioTrack.h
+++ b/include/media/AudioTrack.h
@@ -614,6 +614,7 @@ protected:
void pause(); // suspend thread from execution at next loop boundary
void resume(); // allow thread to execute, if not requested to exit
+ void wake(); // wake to handle changed notification conditions.
private:
void pauseInternal(nsecs_t ns = 0LL);
@@ -628,7 +629,9 @@ protected:
bool mPaused; // whether thread is requested to pause at next loop entry
bool mPausedInt; // whether thread internally requests pause
nsecs_t mPausedNs; // if mPausedInt then associated timeout, otherwise ignored
- bool mIgnoreNextPausedInt; // whether to ignore next mPausedInt request
+ bool mIgnoreNextPausedInt; // skip any internal pause and go immediately
+ // to processAudioBuffer() as state may have changed
+ // since pause time calculated.
};
// body of AudioTrackThread::threadLoop()