Lines Matching refs:mRemaining
411 mRemaining(0), in TimestretchBufferProvider()
446 if (pBuffer->frameCount <= mRemaining) { in getNextBuffer()
456 if (mRemaining != 0) { in getNextBuffer()
457 memcpy(newmem, mLocalBufferData, mRemaining * mFrameSize); in getNextBuffer()
466 const size_t outputDesired = pBuffer->frameCount - mRemaining; in getNextBuffer()
477 if (mRemaining == 0) { in getNextBuffer()
483 pBuffer->frameCount = mRemaining; in getNextBuffer()
489 dstAvailable = std::min(mLocalBufferFrameCount - mRemaining, outputDesired); in getNextBuffer()
491 processFrames((uint8_t*)mLocalBufferData + mRemaining * mFrameSize, &dstAvailable, in getNextBuffer()
500 mRemaining += dstAvailable; in getNextBuffer()
503 pBuffer->frameCount = mRemaining; in getNextBuffer()
517 if (pBuffer->frameCount < mRemaining) { in releaseBuffer()
520 (mRemaining - pBuffer->frameCount) * mFrameSize); in releaseBuffer()
521 mRemaining -= pBuffer->frameCount; in releaseBuffer()
522 } else if (pBuffer->frameCount == mRemaining) { in releaseBuffer()
523 mRemaining = 0; in releaseBuffer()
526 pBuffer->frameCount, mRemaining); in releaseBuffer()
535 mRemaining = 0; in reset()
563 ALOGV("processFrames(%zu %zu) remaining(%zu)", *dstFrames, *srcFrames, mRemaining); in processFrames()