diff options
author | Glenn Kasten <gkasten@google.com> | 2015-03-20 09:00:14 -0700 |
---|---|---|
committer | Glenn Kasten <gkasten@google.com> | 2015-03-23 08:02:52 -0700 |
commit | a9757af8a140a1d5ae261c22f9d7eebef99cbe96 (patch) | |
tree | 4d1a70aa415a7006018bcd5b84c6d28ba9ee0722 /include | |
parent | d2027336b45f524a196403d351ec317782793792 (diff) | |
download | frameworks_av-a9757af8a140a1d5ae261c22f9d7eebef99cbe96.zip frameworks_av-a9757af8a140a1d5ae261c22f9d7eebef99cbe96.tar.gz frameworks_av-a9757af8a140a1d5ae261c22f9d7eebef99cbe96.tar.bz2 |
Move AudioTrack::isOffloaded() and isDirect() variants
to be near each other.
Change-Id: Ic26681716ea48886f0bfed23803240466db5d8fa
Diffstat (limited to 'include')
-rw-r--r-- | include/media/AudioTrack.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/media/AudioTrack.h b/include/media/AudioTrack.h index b5a3a9a..fd9200a 100644 --- a/include/media/AudioTrack.h +++ b/include/media/AudioTrack.h @@ -667,10 +667,6 @@ protected: static const nsecs_t NS_WHENEVER = -1, NS_INACTIVE = -2, NS_NEVER = -3; nsecs_t processAudioBuffer(); - bool isOffloaded() const; - bool isDirect() const; - bool isOffloadedOrDirect() const; - // caller must hold lock on mLock for all _l methods status_t createTrack_l(); @@ -683,6 +679,10 @@ protected: // FIXME enum is faster than strcmp() for parameter 'from' status_t restoreTrack_l(const char *from); + bool isOffloaded() const; + bool isDirect() const; + bool isOffloadedOrDirect() const; + bool isOffloaded_l() const { return (mFlags & AUDIO_OUTPUT_FLAG_COMPRESS_OFFLOAD) != 0; } |