diff options
author | Glenn Kasten <gkasten@google.com> | 2013-08-23 10:54:07 -0700 |
---|---|---|
committer | Glenn Kasten <gkasten@google.com> | 2013-09-03 15:12:11 -0700 |
commit | 6466c9e6e6278c740aed77f695f679be9f5db478 (patch) | |
tree | cd987ec819ddecba0665cd692285069c083fb19b /include/media/nbaio | |
parent | 894d6be4f9b4721c77a01919ecf03b27cec90cc9 (diff) | |
download | frameworks_av-6466c9e6e6278c740aed77f695f679be9f5db478.zip frameworks_av-6466c9e6e6278c740aed77f695f679be9f5db478.tar.gz frameworks_av-6466c9e6e6278c740aed77f695f679be9f5db478.tar.bz2 |
Add ExtendedAudioBufferProvider::framesReleased and onTimestamp
and implement them in SourceAudioBufferProvider using the associated NBAIO_Source,
and in Track using the associated AudioTrackServerProxy.
Change-Id: I60dc4adba63fc1dc452ff16caf347e4a7c8242c2
Diffstat (limited to 'include/media/nbaio')
-rw-r--r-- | include/media/nbaio/SourceAudioBufferProvider.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/media/nbaio/SourceAudioBufferProvider.h b/include/media/nbaio/SourceAudioBufferProvider.h index c08331b..cdfb6fe 100644 --- a/include/media/nbaio/SourceAudioBufferProvider.h +++ b/include/media/nbaio/SourceAudioBufferProvider.h @@ -36,6 +36,8 @@ public: // ExtendedAudioBufferProvider interface virtual size_t framesReady() const; + virtual size_t framesReleased() const; + virtual void onTimestamp(const AudioTimestamp& timestamp); private: const sp<NBAIO_Source> mSource; // the wrapped source @@ -45,6 +47,7 @@ private: size_t mOffset; // frame offset within mAllocated of valid data size_t mRemaining; // frame count within mAllocated of valid data size_t mGetCount; // buffer.frameCount of the most recent getNextBuffer + uint32_t mFramesReleased; // counter of the total number of frames released }; } // namespace android |