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 /services | |
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 'services')
-rw-r--r-- | services/audioflinger/AudioFlinger.h | 1 | ||||
-rw-r--r-- | services/audioflinger/Tracks.cpp | 5 |
2 files changed, 6 insertions, 0 deletions
diff --git a/services/audioflinger/AudioFlinger.h b/services/audioflinger/AudioFlinger.h index e5e4113..5df04f4 100644 --- a/services/audioflinger/AudioFlinger.h +++ b/services/audioflinger/AudioFlinger.h @@ -411,6 +411,7 @@ private: virtual status_t setMediaTimeTransform(const LinearTransform& xform, int target); virtual status_t setParameters(const String8& keyValuePairs); + virtual status_t getTimestamp(AudioTimestamp& timestamp); virtual status_t onTransact( uint32_t code, const Parcel& data, Parcel* reply, uint32_t flags); diff --git a/services/audioflinger/Tracks.cpp b/services/audioflinger/Tracks.cpp index e676365..d1ab3c8 100644 --- a/services/audioflinger/Tracks.cpp +++ b/services/audioflinger/Tracks.cpp @@ -283,6 +283,11 @@ status_t AudioFlinger::TrackHandle::setParameters(const String8& keyValuePairs) return mTrack->setParameters(keyValuePairs); } +status_t AudioFlinger::TrackHandle::getTimestamp(AudioTimestamp& timestamp) +{ + return INVALID_OPERATION; +} + status_t AudioFlinger::TrackHandle::onTransact( uint32_t code, const Parcel& data, Parcel* reply, uint32_t flags) { |