diff options
author | Marco Nelissen <marcone@google.com> | 2012-02-28 16:07:44 -0800 |
---|---|---|
committer | Marco Nelissen <marcone@google.com> | 2012-03-13 13:13:14 -0700 |
commit | 6b74d671a1321a6ecc4a40b6c87beedfecc1ec44 (patch) | |
tree | 44092c52e8439f1991f23601287d424db916c814 /include/media/mediaplayer.h | |
parent | 887c5d2ac34d81bde66dadbd7b2ff07501744778 (diff) | |
download | frameworks_av-6b74d671a1321a6ecc4a40b6c87beedfecc1ec44.zip frameworks_av-6b74d671a1321a6ecc4a40b6c87beedfecc1ec44.tar.gz frameworks_av-6b74d671a1321a6ecc4a40b6c87beedfecc1ec44.tar.bz2 |
Gapless playback, step 1.
Currently able to play Ogg Vorbis, PCM WAV and other lossless files seamlessly
by reusing the initial AudioTrack for subsequent players.
Change-Id: Ie7cf6b9076bdf4f9211574456d192c02c04fecc7
Diffstat (limited to 'include/media/mediaplayer.h')
-rw-r--r-- | include/media/mediaplayer.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/media/mediaplayer.h b/include/media/mediaplayer.h index 9cd5f9f..662dd13 100644 --- a/include/media/mediaplayer.h +++ b/include/media/mediaplayer.h @@ -96,6 +96,9 @@ enum media_error_type { enum media_info_type { // 0xx MEDIA_INFO_UNKNOWN = 1, + // The player was started because it was used as the next player for another + // player, which just completed playback + MEDIA_INFO_STARTED_AS_NEXT = 2, // 7xx // The video is too complex for the decoder: it can't decode frames fast // enough. Possibly only the audio plays fine at this stage. @@ -207,6 +210,7 @@ public: status_t setParameter(int key, const Parcel& request); status_t getParameter(int key, Parcel* reply); status_t setRetransmitEndpoint(const char* addrString, uint16_t port); + status_t setNextMediaPlayer(const sp<MediaPlayer>& player); private: void clear_l(); |