Lines Matching refs:srcFrames
585 const void *srcBuffer, size_t *srcFrames) in processFrames() argument
587 ALOGV("processFrames(%zu %zu) remaining(%zu)", *dstFrames, *srcFrames, mRemaining); in processFrames()
597 if (*srcFrames < targetSrc) { // limit dst frames to that possible in processFrames()
598 *dstFrames = *srcFrames / mPlaybackRate.mSpeed; in processFrames()
599 } else if (*srcFrames > targetSrc + 1) { in processFrames()
600 *srcFrames = targetSrc + 1; in processFrames()
605 if (*dstFrames <= *srcFrames) { in processFrames()
610 for (size_t count = 0; count < *dstFrames; count += *srcFrames) { in processFrames()
611 size_t remaining = std::min(*srcFrames, *dstFrames - count); in processFrames()
634 if (sonicWriteFloatToStream(mSonicStream, (float*)srcBuffer, *srcFrames) != 1) { in processFrames()
636 *srcFrames = 0; // cannot consume all of srcBuffer in processFrames()
641 if (sonicWriteShortToStream(mSonicStream, (short*)srcBuffer, *srcFrames) != 1) { in processFrames()
643 *srcFrames = 0; // cannot consume all of srcBuffer in processFrames()