diff options
author | Andy Hung <hunga@google.com> | 2014-11-25 23:49:04 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2014-11-25 23:49:05 +0000 |
commit | d325005e4a3be45c57e950f8c18b329c968602ce (patch) | |
tree | 4673f354af652344295bc5fd2b2d37d0e6b2f16b /media/libmedia/AudioTrack.cpp | |
parent | 512dd849d0ef9e9988fedfbaf951b4b82523957c (diff) | |
parent | 680b795435a5a501a56610258dce5eda40a1725d (diff) | |
download | frameworks_av-d325005e4a3be45c57e950f8c18b329c968602ce.zip frameworks_av-d325005e4a3be45c57e950f8c18b329c968602ce.tar.gz frameworks_av-d325005e4a3be45c57e950f8c18b329c968602ce.tar.bz2 |
Merge "Fix AudioTrack loop mode to play audio from buffer start" into lmp-mr1-dev
Diffstat (limited to 'media/libmedia/AudioTrack.cpp')
-rw-r--r-- | media/libmedia/AudioTrack.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/media/libmedia/AudioTrack.cpp b/media/libmedia/AudioTrack.cpp index d6c3bc5..39e3c3d 100644 --- a/media/libmedia/AudioTrack.cpp +++ b/media/libmedia/AudioTrack.cpp @@ -742,8 +742,7 @@ status_t AudioTrack::setLoop(uint32_t loopStart, uint32_t loopEnd, int loopCount void AudioTrack::setLoop_l(uint32_t loopStart, uint32_t loopEnd, int loopCount) { - // FIXME If setting a loop also sets position to start of loop, then - // this is correct. Otherwise it should be removed. + // Setting the loop will reset next notification update period (like setPosition). mNewPosition = updateAndGetPosition_l() + mUpdatePeriod; mLoopPeriod = loopCount != 0 ? loopEnd - loopStart : 0; mStaticProxy->setLoop(loopStart, loopEnd, loopCount); |