summaryrefslogtreecommitdiffstats
path: root/services/audioflinger/SourceAudioBufferProvider.h
diff options
context:
space:
mode:
authorGlenn Kasten <gkasten@google.com>2012-04-30 15:50:54 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2012-04-30 15:50:54 -0700
commit6e66e4a9ffcb202beb2bcedb85c7d6f9ff391b4c (patch)
treed23ce5c5bfd52f3e70f09923d507dc4301c6b5fe /services/audioflinger/SourceAudioBufferProvider.h
parenta3cbc03f7c646ad9b05d24e72a6d306cb457807c (diff)
parent288ed2103d96f3aabd7e6bea3c080ab6db164049 (diff)
downloadframeworks_av-6e66e4a9ffcb202beb2bcedb85c7d6f9ff391b4c.zip
frameworks_av-6e66e4a9ffcb202beb2bcedb85c7d6f9ff391b4c.tar.gz
frameworks_av-6e66e4a9ffcb202beb2bcedb85c7d6f9ff391b4c.tar.bz2
Merge "Fix race condition for non-started fast tracks" into jb-dev
Diffstat (limited to 'services/audioflinger/SourceAudioBufferProvider.h')
-rw-r--r--services/audioflinger/SourceAudioBufferProvider.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/services/audioflinger/SourceAudioBufferProvider.h b/services/audioflinger/SourceAudioBufferProvider.h
index 3219d78..85ccbb2 100644
--- a/services/audioflinger/SourceAudioBufferProvider.h
+++ b/services/audioflinger/SourceAudioBufferProvider.h
@@ -20,11 +20,11 @@
#define ANDROID_SOURCE_AUDIO_BUFFER_PROVIDER_H
#include "NBAIO.h"
-#include "AudioBufferProvider.h"
+#include "ExtendedAudioBufferProvider.h"
namespace android {
-class SourceAudioBufferProvider : public AudioBufferProvider {
+class SourceAudioBufferProvider : public ExtendedAudioBufferProvider {
public:
SourceAudioBufferProvider(const sp<NBAIO_Source>& source);
@@ -34,6 +34,9 @@ public:
virtual status_t getNextBuffer(Buffer *buffer, int64_t pts);
virtual void releaseBuffer(Buffer *buffer);
+ // ExtendedAudioBufferProvider interface
+ virtual size_t framesReady() const;
+
private:
const sp<NBAIO_Source> mSource; // the wrapped source
/*const*/ size_t mFrameBitShift; // log2(frame size in bytes)