diff options
author | Glenn Kasten <gkasten@google.com> | 2013-08-26 10:29:28 -0700 |
---|---|---|
committer | Glenn Kasten <gkasten@google.com> | 2013-09-03 15:12:03 -0700 |
commit | 894d6be4f9b4721c77a01919ecf03b27cec90cc9 (patch) | |
tree | c0356613af3c5dc3451197f8781a43c5d9d4d36c /media/libnbaio | |
parent | a07a1c2c91dc7ee6ded319262499f20cd01edcf7 (diff) | |
download | frameworks_av-894d6be4f9b4721c77a01919ecf03b27cec90cc9.zip frameworks_av-894d6be4f9b4721c77a01919ecf03b27cec90cc9.tar.gz frameworks_av-894d6be4f9b4721c77a01919ecf03b27cec90cc9.tar.bz2 |
Add NBAIO_Source::onTimestamp()
with dummy default implementation, and implement in MonoPipeReader.
onTimestamp is meant to be called by the corresponding sink when it has
a new timestamp available.
Change-Id: I8a90d24d1061e4a592ce5bd8ee1c9fce6bdd8a84
Diffstat (limited to 'media/libnbaio')
-rw-r--r-- | media/libnbaio/MonoPipeReader.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/media/libnbaio/MonoPipeReader.cpp b/media/libnbaio/MonoPipeReader.cpp index 394f6ac..851341a 100644 --- a/media/libnbaio/MonoPipeReader.cpp +++ b/media/libnbaio/MonoPipeReader.cpp @@ -86,4 +86,9 @@ ssize_t MonoPipeReader::read(void *buffer, size_t count, int64_t readPTS) return red; } +void MonoPipeReader::onTimestamp(const AudioTimestamp& timestamp) +{ + mPipe->mTimestampMutator.push(timestamp); +} + } // namespace android |