summaryrefslogtreecommitdiffstats
path: root/media/libmediaplayerservice/MediaPlayerService.h
diff options
context:
space:
mode:
authorMarco Nelissen <marcone@google.com>2010-01-12 09:23:54 -0800
committerMarco Nelissen <marcone@google.com>2010-01-12 10:27:04 -0800
commit7ee8ac94bb1a724a481a7cddf10ce63d35df6296 (patch)
tree23ce4872de0a6bd3cd4dec1de1065173563a16ae /media/libmediaplayerservice/MediaPlayerService.h
parentfc9ba09e3bb368f823d473f5e2bb9aa32dba6289 (diff)
downloadframeworks_av-7ee8ac94bb1a724a481a7cddf10ce63d35df6296.zip
frameworks_av-7ee8ac94bb1a724a481a7cddf10ce63d35df6296.tar.gz
frameworks_av-7ee8ac94bb1a724a481a7cddf10ce63d35df6296.tar.bz2
b/2353646
Fix music visualizations to also work with audiotrack callbacks, which stagefright uses. This slightly changes the way the data is stored, since before we were relying on the buffers being written always being at least 4K, whereas the callbacks are generally for smaller amounts of data. Now we append all the data to a big circular buffer, then return chunks of that buffer for visualization. When there are multiple things playing at the same time, this will give the wrong result, but (1) that was the case before as well, and (2) will be fixed once we start visualizing the mixer output instead of the mixer inputs.
Diffstat (limited to 'media/libmediaplayerservice/MediaPlayerService.h')
-rw-r--r--media/libmediaplayerservice/MediaPlayerService.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/media/libmediaplayerservice/MediaPlayerService.h b/media/libmediaplayerservice/MediaPlayerService.h
index 1c90cf9..d1206b4 100644
--- a/media/libmediaplayerservice/MediaPlayerService.h
+++ b/media/libmediaplayerservice/MediaPlayerService.h
@@ -113,6 +113,7 @@ class MediaPlayerService : public BnMediaPlayerService
public: // visualization hack support
uint32_t mNumFramesWritten;
+ void snoopWrite(const void*, size_t);
};
class AudioCache : public MediaPlayerBase::AudioSink