Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 943917c4 authored by Glenn Kasten's avatar Glenn Kasten Committed by Gerrit Code Review
Browse files

Merge "Fix SoundPool.play() looping regression in 4.3 DO NOT MERGE"

parents d0f5664a a0d77cd6
Loading
Loading
Loading
Loading
+3 −1
Original line number Original line Diff line number Diff line
@@ -557,7 +557,9 @@ status_t AudioTrack::setLoop(uint32_t loopStart, uint32_t loopEnd, int loopCount
// must be called with mLock held
// must be called with mLock held
status_t AudioTrack::setLoop_l(uint32_t loopStart, uint32_t loopEnd, int loopCount)
status_t AudioTrack::setLoop_l(uint32_t loopStart, uint32_t loopEnd, int loopCount)
{
{
    if (mSharedBuffer == 0 || mIsTimed) {
    // SoundPool streaming implementation uses AudioTrack EVENT_MORE_DATA callback mode,
    // and relies on being able to loop the data provided by the most recent callback.
    if (/*mSharedBuffer == 0 ||*/ mIsTimed) {
        return INVALID_OPERATION;
        return INVALID_OPERATION;
    }
    }