Loading media/libmedia/AudioTrack.cpp +3 −1 Original line number Original line Diff line number Diff line Loading @@ -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; } } Loading Loading
media/libmedia/AudioTrack.cpp +3 −1 Original line number Original line Diff line number Diff line Loading @@ -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; } } Loading