summaryrefslogtreecommitdiffstats
path: root/services/audioflinger/AudioBufferProviderSource.h
diff options
context:
space:
mode:
authorJohn Grossman <johngro@google.com>2012-08-02 17:08:54 -0700
committerJohn Grossman <johngro@google.com>2012-08-08 11:28:15 -0700
commit2c3b2da3049627264b7c6b449a1622f002210f03 (patch)
treef99fadbfef22ff3b7709a505623371c22e39566c /services/audioflinger/AudioBufferProviderSource.h
parentee578c0330319f04a48bccbdb26b53fea0388d04 (diff)
downloadframeworks_av-2c3b2da3049627264b7c6b449a1622f002210f03.zip
frameworks_av-2c3b2da3049627264b7c6b449a1622f002210f03.tar.gz
frameworks_av-2c3b2da3049627264b7c6b449a1622f002210f03.tar.bz2
AudioFlinger: fix timed audio
(cherry picked from commit e20ac92c564a2f4e8123885807abdf0a78de0dd7) > AudioFlinger: fix timed audio > > Addresses Bug 6900517. > > Finish up support for timed audio in the new FastMixer world. Pay special > attention to remaining lock-less and voluntary yield free on the FastMixer > thread. This fixes audio playback for Q on JB. > > Change-Id: Iaf815e58a1b1d0a0190051794bec8dc5c9231785 > Signed-off-by: John Grossman <johngro@google.com> Change-Id: I9bd687acc345a05867af48e71116690fdb0ce1b5 Signed-off-by: John Grossman <johngro@google.com>
Diffstat (limited to 'services/audioflinger/AudioBufferProviderSource.h')
-rw-r--r--services/audioflinger/AudioBufferProviderSource.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/services/audioflinger/AudioBufferProviderSource.h b/services/audioflinger/AudioBufferProviderSource.h
index 2b39937..1435a84 100644
--- a/services/audioflinger/AudioBufferProviderSource.h
+++ b/services/audioflinger/AudioBufferProviderSource.h
@@ -42,8 +42,9 @@ public:
//virtual size_t framesOverrun();
//virtual size_t overruns();
virtual ssize_t availableToRead();
- virtual ssize_t read(void *buffer, size_t count);
- virtual ssize_t readVia(readVia_t via, size_t total, void *user, size_t block);
+ virtual ssize_t read(void *buffer, size_t count, int64_t readPTS);
+ virtual ssize_t readVia(readVia_t via, size_t total, void *user,
+ int64_t readPTS, size_t block);
private:
AudioBufferProvider * const mProvider;