Lines Matching refs:mRemaining
404 mRemaining(0), in TimestretchBufferProvider()
439 if (pBuffer->frameCount <= mRemaining) { in getNextBuffer()
449 if (mRemaining != 0) { in getNextBuffer()
450 memcpy(newmem, mLocalBufferData, mRemaining * mFrameSize); in getNextBuffer()
459 const size_t outputDesired = pBuffer->frameCount - mRemaining; in getNextBuffer()
470 if (mRemaining == 0) { in getNextBuffer()
476 pBuffer->frameCount = mRemaining; in getNextBuffer()
482 dstAvailable = min(mLocalBufferFrameCount - mRemaining, outputDesired); in getNextBuffer()
484 processFrames((uint8_t*)mLocalBufferData + mRemaining * mFrameSize, &dstAvailable, in getNextBuffer()
493 mRemaining += dstAvailable; in getNextBuffer()
496 pBuffer->frameCount = mRemaining; in getNextBuffer()
510 if (pBuffer->frameCount < mRemaining) { in releaseBuffer()
513 (mRemaining - pBuffer->frameCount) * mFrameSize); in releaseBuffer()
514 mRemaining -= pBuffer->frameCount; in releaseBuffer()
515 } else if (pBuffer->frameCount == mRemaining) { in releaseBuffer()
516 mRemaining = 0; in releaseBuffer()
519 pBuffer->frameCount, mRemaining); in releaseBuffer()
528 mRemaining = 0; in reset()
546 ALOGV("processFrames(%zu %zu) remaining(%zu)", *dstFrames, *srcFrames, mRemaining); in processFrames()