diff options
author | Marco Nelissen <marcone@google.com> | 2012-03-21 13:36:07 -0700 |
---|---|---|
committer | Marco Nelissen <marcone@google.com> | 2012-03-22 10:06:03 -0700 |
commit | a98478bfbcc0f7fb4b164d3dce40ca96df75667d (patch) | |
tree | 44a6ad7c4a9fb330ebdf560a2d8f446b43278498 /media/libstagefright/codecs/mp3dec/SoftMP3.h | |
parent | 898b11f2aeaaa2bed84d963a3fcfd3b229e00b99 (diff) | |
download | frameworks_av-a98478bfbcc0f7fb4b164d3dce40ca96df75667d.zip frameworks_av-a98478bfbcc0f7fb4b164d3dce40ca96df75667d.tar.gz frameworks_av-a98478bfbcc0f7fb4b164d3dce40ca96df75667d.tar.bz2 |
Support gapless playback for mp3 and m4a
Gapless playback for appropriately tagged mp3 and m4a files.
Currently this is implemented in OMXCodec, which most players
use, but should be easy to support in other players as well by
using the SkipCutBuffer utility class.
Change-Id: I748c669adc1cfbe5ee9a7dea2fad945d48882551
Diffstat (limited to 'media/libstagefright/codecs/mp3dec/SoftMP3.h')
-rw-r--r-- | media/libstagefright/codecs/mp3dec/SoftMP3.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/media/libstagefright/codecs/mp3dec/SoftMP3.h b/media/libstagefright/codecs/mp3dec/SoftMP3.h index 70d0682..3a05466 100644 --- a/media/libstagefright/codecs/mp3dec/SoftMP3.h +++ b/media/libstagefright/codecs/mp3dec/SoftMP3.h @@ -46,7 +46,8 @@ protected: private: enum { kNumBuffers = 4, - kOutputBufferSize = 4608 * 2 + kOutputBufferSize = 4608 * 2, + kPVMP3DecoderDelay = 529 // frames }; tPVMP3DecoderExternal *mConfig; @@ -57,8 +58,7 @@ private: int32_t mNumChannels; int32_t mSamplingRate; - bool mConfigured; - + bool mIsFirst; bool mSignalledError; enum { |