diff options
author | Glenn Kasten <gkasten@google.com> | 2013-09-03 16:08:26 -0700 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2013-09-03 16:08:26 -0700 |
commit | a071bf884605f7bb34b45ee9f21476c9757c6d5b (patch) | |
tree | b9d110c32f90f7c722ce4669f11bee708c3f6b57 /include/media/nbaio/NBAIO.h | |
parent | 1a3a8078462e52b450dbad7443abaca1ca9cbfb8 (diff) | |
parent | 894d6be4f9b4721c77a01919ecf03b27cec90cc9 (diff) | |
download | frameworks_av-a071bf884605f7bb34b45ee9f21476c9757c6d5b.zip frameworks_av-a071bf884605f7bb34b45ee9f21476c9757c6d5b.tar.gz frameworks_av-a071bf884605f7bb34b45ee9f21476c9757c6d5b.tar.bz2 |
am 894d6be4: Add NBAIO_Source::onTimestamp()
* commit '894d6be4f9b4721c77a01919ecf03b27cec90cc9':
Add NBAIO_Source::onTimestamp()
Diffstat (limited to 'include/media/nbaio/NBAIO.h')
-rw-r--r-- | include/media/nbaio/NBAIO.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/media/nbaio/NBAIO.h b/include/media/nbaio/NBAIO.h index cc5b3e6..1da0c73 100644 --- a/include/media/nbaio/NBAIO.h +++ b/include/media/nbaio/NBAIO.h @@ -306,6 +306,10 @@ public: virtual ssize_t readVia(readVia_t via, size_t total, void *user, int64_t readPTS, size_t block = 0); + // Invoked asynchronously by corresponding sink when a new timestamp is available. + // Default implementation ignores the timestamp. + virtual void onTimestamp(const AudioTimestamp& timestamp) { } + protected: NBAIO_Source(NBAIO_Format format = Format_Invalid) : NBAIO_Port(format), mFramesRead(0) { } virtual ~NBAIO_Source() { } |