summaryrefslogtreecommitdiffstats
path: root/services/audioflinger/Threads.h
diff options
context:
space:
mode:
authorEric Laurent <elaurent@google.com>2015-01-07 16:02:57 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2015-01-07 16:02:57 +0000
commit81879df8dc51df4d8a3880349e9e1e6b5e3cebfb (patch)
tree920af202ad4576e997a540bfc98479aa97b2a0e2 /services/audioflinger/Threads.h
parent197f84845ccea9319a1589b85edeb2dcf56b81b3 (diff)
parent69158e3e7b565a5ca131a2efaa9b76615ca80cbb (diff)
downloadframeworks_av-81879df8dc51df4d8a3880349e9e1e6b5e3cebfb.zip
frameworks_av-81879df8dc51df4d8a3880349e9e1e6b5e3cebfb.tar.gz
frameworks_av-81879df8dc51df4d8a3880349e9e1e6b5e3cebfb.tar.bz2
am 69158e3e: am 6ab33981: am 610255e8: Merge "audioflinger: pause HW A/V sync output when AudioTrack underruns" into lmp-mr1-dev
* commit '69158e3e7b565a5ca131a2efaa9b76615ca80cbb': audioflinger: pause HW A/V sync output when AudioTrack underruns
Diffstat (limited to 'services/audioflinger/Threads.h')
-rw-r--r--services/audioflinger/Threads.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/services/audioflinger/Threads.h b/services/audioflinger/Threads.h
index 4397cec..a1ac42c 100644
--- a/services/audioflinger/Threads.h
+++ b/services/audioflinger/Threads.h
@@ -713,6 +713,9 @@ protected:
audio_patch_handle_t *handle);
virtual status_t releaseAudioPatch_l(const audio_patch_handle_t handle);
+ bool usesHwAvSync() const { return (mType == DIRECT) && (mOutput != NULL) &&
+ (mOutput->flags & AUDIO_OUTPUT_FLAG_HW_AV_SYNC); }
+
private:
friend class AudioFlinger; // for numerous