Lines Matching refs:mRemaining
332 mRemaining(0), in TimestretchBufferProvider()
367 if (pBuffer->frameCount <= mRemaining) { in getNextBuffer()
377 if (mRemaining != 0) { in getNextBuffer()
378 memcpy(newmem, mLocalBufferData, mRemaining * mFrameSize); in getNextBuffer()
387 const size_t outputDesired = pBuffer->frameCount - mRemaining; in getNextBuffer()
398 if (mRemaining == 0) { in getNextBuffer()
404 pBuffer->frameCount = mRemaining; in getNextBuffer()
410 dstAvailable = min(mLocalBufferFrameCount - mRemaining, outputDesired); in getNextBuffer()
412 processFrames((uint8_t*)mLocalBufferData + mRemaining * mFrameSize, &dstAvailable, in getNextBuffer()
421 mRemaining += dstAvailable; in getNextBuffer()
424 pBuffer->frameCount = mRemaining; in getNextBuffer()
438 if (pBuffer->frameCount < mRemaining) { in releaseBuffer()
441 (mRemaining - pBuffer->frameCount) * mFrameSize); in releaseBuffer()
442 mRemaining -= pBuffer->frameCount; in releaseBuffer()
443 } else if (pBuffer->frameCount == mRemaining) { in releaseBuffer()
444 mRemaining = 0; in releaseBuffer()
447 pBuffer->frameCount, mRemaining); in releaseBuffer()
456 mRemaining = 0; in reset()
474 ALOGV("processFrames(%zu %zu) remaining(%zu)", *dstFrames, *srcFrames, mRemaining); in processFrames()