Lines Matching refs:mRemaining
412 mRemaining(0), in TimestretchBufferProvider()
447 if (pBuffer->frameCount <= mRemaining) { in getNextBuffer()
457 if (mRemaining != 0) { in getNextBuffer()
458 memcpy(newmem, mLocalBufferData, mRemaining * mFrameSize); in getNextBuffer()
467 const size_t outputDesired = pBuffer->frameCount - mRemaining; in getNextBuffer()
478 if (mRemaining == 0) { in getNextBuffer()
484 pBuffer->frameCount = mRemaining; in getNextBuffer()
490 dstAvailable = std::min(mLocalBufferFrameCount - mRemaining, outputDesired); in getNextBuffer()
492 processFrames((uint8_t*)mLocalBufferData + mRemaining * mFrameSize, &dstAvailable, in getNextBuffer()
501 mRemaining += dstAvailable; in getNextBuffer()
504 pBuffer->frameCount = mRemaining; in getNextBuffer()
518 if (pBuffer->frameCount < mRemaining) { in releaseBuffer()
521 (mRemaining - pBuffer->frameCount) * mFrameSize); in releaseBuffer()
522 mRemaining -= pBuffer->frameCount; in releaseBuffer()
523 } else if (pBuffer->frameCount == mRemaining) { in releaseBuffer()
524 mRemaining = 0; in releaseBuffer()
527 pBuffer->frameCount, mRemaining); in releaseBuffer()
536 mRemaining = 0; in reset()
564 ALOGV("processFrames(%zu %zu) remaining(%zu)", *dstFrames, *srcFrames, mRemaining); in processFrames()