Lines Matching refs:mRemaining
442 mRemaining(0), in TimestretchBufferProvider()
477 if (pBuffer->frameCount <= mRemaining) { in getNextBuffer()
487 if (mRemaining != 0) { in getNextBuffer()
488 memcpy(newmem, mLocalBufferData, mRemaining * mFrameSize); in getNextBuffer()
497 const size_t outputDesired = pBuffer->frameCount - mRemaining; in getNextBuffer()
508 if (mRemaining == 0) { in getNextBuffer()
514 pBuffer->frameCount = mRemaining; in getNextBuffer()
520 dstAvailable = std::min(mLocalBufferFrameCount - mRemaining, outputDesired); in getNextBuffer()
522 processFrames((uint8_t*)mLocalBufferData + mRemaining * mFrameSize, &dstAvailable, in getNextBuffer()
531 mRemaining += dstAvailable; in getNextBuffer()
534 pBuffer->frameCount = mRemaining; in getNextBuffer()
548 if (pBuffer->frameCount < mRemaining) { in releaseBuffer()
551 (mRemaining - pBuffer->frameCount) * mFrameSize); in releaseBuffer()
552 mRemaining -= pBuffer->frameCount; in releaseBuffer()
553 } else if (pBuffer->frameCount == mRemaining) { in releaseBuffer()
554 mRemaining = 0; in releaseBuffer()
557 pBuffer->frameCount, mRemaining); in releaseBuffer()
566 mRemaining = 0; in reset()
594 ALOGV("processFrames(%zu %zu) remaining(%zu)", *dstFrames, *srcFrames, mRemaining); in processFrames()