diff options
author | Glenn Kasten <gkasten@google.com> | 2013-08-29 09:01:02 -0700 |
---|---|---|
committer | Glenn Kasten <gkasten@google.com> | 2013-08-29 09:19:07 -0700 |
commit | 53cec22821072719ee02c856e9ac2dda2496c570 (patch) | |
tree | 1ac72eaf3ba6059680f8c3d7e39ae58a9e03adc8 /include/media/IAudioTrack.h | |
parent | ce70374bf105f8a6160bf5dd70affea012b2a464 (diff) | |
download | frameworks_av-53cec22821072719ee02c856e9ac2dda2496c570.zip frameworks_av-53cec22821072719ee02c856e9ac2dda2496c570.tar.gz frameworks_av-53cec22821072719ee02c856e9ac2dda2496c570.tar.bz2 |
Add IAudioTrack::getTimestamp()
with dummy implementation in AudioFlinger::TrackHandle, and
implement AudioTrack::getTimestamp() using IAudioTrack.
Also document invariant that mAudioTrack and control block are always
non-0 after successful initialization.
Change-Id: I9861d1454cff7decf795d5d5898ac7999a9f3b7e
Diffstat (limited to 'include/media/IAudioTrack.h')
-rw-r--r-- | include/media/IAudioTrack.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/media/IAudioTrack.h b/include/media/IAudioTrack.h index 1014403..afac4ae 100644 --- a/include/media/IAudioTrack.h +++ b/include/media/IAudioTrack.h @@ -26,6 +26,7 @@ #include <binder/IMemory.h> #include <utils/LinearTransform.h> #include <utils/String8.h> +#include <media/AudioTimestamp.h> namespace android { @@ -86,6 +87,9 @@ public: /* Send parameters to the audio hardware */ virtual status_t setParameters(const String8& keyValuePairs) = 0; + + /* Return NO_ERROR if timestamp is valid */ + virtual status_t getTimestamp(AudioTimestamp& timestamp) = 0; }; // ---------------------------------------------------------------------------- |