diff options
author | Andreas Huber <andih@google.com> | 2010-07-20 09:21:17 -0700 |
---|---|---|
committer | Andreas Huber <andih@google.com> | 2010-07-20 09:25:38 -0700 |
commit | 3c3ddfa39635a2d39f4ee7c966fb9403fe1ec9d8 (patch) | |
tree | 6003c16314885bf515785ba2648334434bff2762 /include | |
parent | 95c2580db188dee19cab05d29351c7ca5973cf3b (diff) | |
download | frameworks_av-3c3ddfa39635a2d39f4ee7c966fb9403fe1ec9d8.zip frameworks_av-3c3ddfa39635a2d39f4ee7c966fb9403fe1ec9d8.tar.gz frameworks_av-3c3ddfa39635a2d39f4ee7c966fb9403fe1ec9d8.tar.bz2 |
Support a single format change at the beginning of audio playback. This way the AAC+ decoder may change its output format from what is originally encoded in the audio stream and we'll still play it back correctly.
Change-Id: Icc790122744745e9a88099788d4818ca1e265a82
related-to-bug: 2826841
Diffstat (limited to 'include')
-rw-r--r-- | include/media/stagefright/AudioPlayer.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/media/stagefright/AudioPlayer.h b/include/media/stagefright/AudioPlayer.h index 9af5871..9a09586 100644 --- a/include/media/stagefright/AudioPlayer.h +++ b/include/media/stagefright/AudioPlayer.h @@ -86,6 +86,10 @@ private: bool mStarted; + bool mIsFirstBuffer; + status_t mFirstBufferResult; + MediaBuffer *mFirstBuffer; + sp<MediaPlayerBase::AudioSink> mAudioSink; static void AudioCallback(int event, void *user, void *info); |