Lines Matching refs:srcFrames
561 const void *srcBuffer, size_t *srcFrames) in processFrames() argument
563 ALOGV("processFrames(%zu %zu) remaining(%zu)", *dstFrames, *srcFrames, mRemaining); in processFrames()
573 if (*srcFrames < targetSrc) { // limit dst frames to that possible in processFrames()
574 *dstFrames = *srcFrames / mPlaybackRate.mSpeed; in processFrames()
575 } else if (*srcFrames > targetSrc + 1) { in processFrames()
576 *srcFrames = targetSrc + 1; in processFrames()
581 if (*dstFrames <= *srcFrames) { in processFrames()
586 for (size_t count = 0; count < *dstFrames; count += *srcFrames) { in processFrames()
587 size_t remaining = std::min(*srcFrames, *dstFrames - count); in processFrames()
610 if (sonicWriteFloatToStream(mSonicStream, (float*)srcBuffer, *srcFrames) != 1) { in processFrames()
612 *srcFrames = 0; // cannot consume all of srcBuffer in processFrames()
617 if (sonicWriteShortToStream(mSonicStream, (short*)srcBuffer, *srcFrames) != 1) { in processFrames()
619 *srcFrames = 0; // cannot consume all of srcBuffer in processFrames()