Lines Matching refs:srcFrames
562 const void *srcBuffer, size_t *srcFrames) in processFrames() argument
564 ALOGV("processFrames(%zu %zu) remaining(%zu)", *dstFrames, *srcFrames, mRemaining); in processFrames()
574 if (*srcFrames < targetSrc) { // limit dst frames to that possible in processFrames()
575 *dstFrames = *srcFrames / mPlaybackRate.mSpeed; in processFrames()
576 } else if (*srcFrames > targetSrc + 1) { in processFrames()
577 *srcFrames = targetSrc + 1; in processFrames()
582 if (*dstFrames <= *srcFrames) { in processFrames()
587 for (size_t count = 0; count < *dstFrames; count += *srcFrames) { in processFrames()
588 size_t remaining = std::min(*srcFrames, *dstFrames - count); in processFrames()
611 if (sonicWriteFloatToStream(mSonicStream, (float*)srcBuffer, *srcFrames) != 1) { in processFrames()
613 *srcFrames = 0; // cannot consume all of srcBuffer in processFrames()
618 if (sonicWriteShortToStream(mSonicStream, (short*)srcBuffer, *srcFrames) != 1) { in processFrames()
620 *srcFrames = 0; // cannot consume all of srcBuffer in processFrames()