Home
last modified time | relevance | path

Searched refs:dstFrames (Results 1 – 3 of 3) sorted by relevance

/frameworks/av/services/audioflinger/
DBufferProviders.cpp471 void TimestretchBufferProvider::processFrames(void *dstBuffer, size_t *dstFrames, in processFrames() argument
474 ALOGV("processFrames(%zu %zu) remaining(%zu)", *dstFrames, *srcFrames, mRemaining); in processFrames()
480 const size_t targetSrc = *dstFrames * mPlaybackRate.mSpeed; in processFrames()
482 *dstFrames = *srcFrames / mPlaybackRate.mSpeed; in processFrames()
489 if (*dstFrames > 0) { in processFrames()
492 if (*dstFrames <= *srcFrames) { in processFrames()
493 size_t copySize = mFrameSize * *dstFrames; in processFrames()
497 for (size_t count = 0; count < *dstFrames; count += *srcFrames) { in processFrames()
498 size_t remaining = min(*srcFrames, *dstFrames - count); in processFrames()
506 memset(dstBuffer,0, mFrameSize * *dstFrames); in processFrames()
[all …]
DBufferProviders.h172 virtual void processFrames(void *dstBuffer, size_t *dstFrames,
/frameworks/av/include/media/
DAudioResamplerPublic.h150 uint64_t dstFrames = (uint64_t)srcFrames * dstSampleRate / srcSampleRate; in destinationFramesPossible() local
151 return dstFrames > 2 ? dstFrames - 2 : 0; in destinationFramesPossible()