diff options
Diffstat (limited to 'services/audioflinger/TrackBase.h')
-rw-r--r-- | services/audioflinger/TrackBase.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/services/audioflinger/TrackBase.h b/services/audioflinger/TrackBase.h index 06023fd..5f13be3 100644 --- a/services/audioflinger/TrackBase.h +++ b/services/audioflinger/TrackBase.h @@ -48,6 +48,7 @@ public: const sp<IMemory>& sharedBuffer, int sessionId, int uid, + IAudioFlinger::track_flags_t flags, bool isOut, bool useReadOnlyHeap = false); virtual ~TrackBase(); @@ -63,6 +64,7 @@ public: virtual status_t setSyncEvent(const sp<SyncEvent>& event); sp<IMemory> getBuffers() const { return mBufferMemory; } + bool isFastTrack() const { return (mFlags & IAudioFlinger::TRACK_FAST) != 0; } protected: TrackBase(const TrackBase&); @@ -134,6 +136,7 @@ protected: const int mSessionId; int mUid; Vector < sp<SyncEvent> >mSyncEvents; + const IAudioFlinger::track_flags_t mFlags; const bool mIsOut; ServerProxy* mServerProxy; const int mId; |