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 /media/libmedia/mediaplayer.cpp | |
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 'media/libmedia/mediaplayer.cpp')
-rw-r--r-- | media/libmedia/mediaplayer.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/media/libmedia/mediaplayer.cpp b/media/libmedia/mediaplayer.cpp index 4ff1862..eedb3ce 100644 --- a/media/libmedia/mediaplayer.cpp +++ b/media/libmedia/mediaplayer.cpp @@ -788,4 +788,11 @@ void MediaPlayer::died() } +status_t MediaPlayer::setNextMediaPlayer(const sp<MediaPlayer>& next) { + if (mPlayer == NULL) { + return NO_INIT; + } + return mPlayer->setNextPlayer(next == NULL ? NULL : next->mPlayer); +} + }; // namespace android |