diff options
author | Andreas Huber <andih@google.com> | 2010-02-09 16:59:18 -0800 |
---|---|---|
committer | Andreas Huber <andih@google.com> | 2010-02-10 10:20:34 -0800 |
commit | 7d5b8a70c28c0d5746a600467b2887822dbff88e (patch) | |
tree | 886d7439311c8d76f00694123c06d3e21edb54b1 /include/media/MediaPlayerInterface.h | |
parent | 316f8352846a1470b0ffd1b94ac1ec535922a9f6 (diff) | |
download | frameworks_av-7d5b8a70c28c0d5746a600467b2887822dbff88e.zip frameworks_av-7d5b8a70c28c0d5746a600467b2887822dbff88e.tar.gz frameworks_av-7d5b8a70c28c0d5746a600467b2887822dbff88e.tar.bz2 |
Implementation of stagefright-enabled MediaPlayerService::decode functionality
related-to-bug: 2359268
Diffstat (limited to 'include/media/MediaPlayerInterface.h')
-rw-r--r-- | include/media/MediaPlayerInterface.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/media/MediaPlayerInterface.h b/include/media/MediaPlayerInterface.h index a5a1bb8..be06e33 100644 --- a/include/media/MediaPlayerInterface.h +++ b/include/media/MediaPlayerInterface.h @@ -62,7 +62,8 @@ public: // AudioSink: abstraction layer for audio output class AudioSink : public RefBase { public: - typedef void (*AudioCallback)( + // Callback returns the number of bytes actually written to the buffer. + typedef size_t (*AudioCallback)( AudioSink *audioSink, void *buffer, size_t size, void *cookie); virtual ~AudioSink() {} @@ -77,8 +78,7 @@ public: virtual status_t getPosition(uint32_t *position) = 0; // If no callback is specified, use the "write" API below to submit - // audio data. Otherwise return a full buffer of audio data on each - // callback. + // audio data. virtual status_t open( uint32_t sampleRate, int channelCount, int format=AudioSystem::PCM_16_BIT, |