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/ExtendedAudioBufferProvider.h | |
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/ExtendedAudioBufferProvider.h')
-rw-r--r-- | include/media/ExtendedAudioBufferProvider.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/media/ExtendedAudioBufferProvider.h b/include/media/ExtendedAudioBufferProvider.h index 00c4444..2539ed3 100644 --- a/include/media/ExtendedAudioBufferProvider.h +++ b/include/media/ExtendedAudioBufferProvider.h @@ -18,12 +18,20 @@ #define ANDROID_EXTENDED_AUDIO_BUFFER_PROVIDER_H #include <media/AudioBufferProvider.h> +#include <media/AudioTimestamp.h> namespace android { class ExtendedAudioBufferProvider : public AudioBufferProvider { public: virtual size_t framesReady() const = 0; // see description at AudioFlinger.h + + // Return the total number of frames that have been obtained and released + virtual size_t framesReleased() const { return 0; } + + // Invoked by buffer consumer when a new timestamp is available. + // Default implementation ignores the timestamp. + virtual void onTimestamp(const AudioTimestamp& timestamp) { } }; } // namespace android |