Searched refs:srcFrames (Results 1 - 3 of 3) sorted by relevance

/frameworks/av/include/media/
H A DAudioResamplerPublic.h143 // An upper bound for the number of destination frames possible from srcFrames
145 static inline size_t destinationFramesPossible(size_t srcFrames, uint32_t srcSampleRate, argument
148 return srcFrames;
150 uint64_t dstFrames = (uint64_t)srcFrames * dstSampleRate / srcSampleRate;
/frameworks/av/services/audioflinger/
H A DBufferProviders.cpp472 const void *srcBuffer, size_t *srcFrames)
474 ALOGV("processFrames(%zu %zu) remaining(%zu)", *dstFrames, *srcFrames, mRemaining);
484 if (*srcFrames < targetSrc) { // limit dst frames to that possible
485 *dstFrames = *srcFrames / mPlaybackRate.mSpeed;
486 } else if (*srcFrames > targetSrc + 1) {
487 *srcFrames = targetSrc + 1;
492 if (*dstFrames <= *srcFrames) {
497 for (size_t count = 0; count < *dstFrames; count += *srcFrames) {
498 size_t remaining = min(*srcFrames, *dstFrames - count);
521 if (sonicWriteFloatToStream(mSonicStream, (float*)srcBuffer, *srcFrames) !
471 processFrames(void *dstBuffer, size_t *dstFrames, const void *srcBuffer, size_t *srcFrames) argument
[all...]
H A DBufferProviders.h171 // srcFrames [in/out] is the available source frames (return with consumed)
173 const void *srcBuffer, size_t *srcFrames);

Completed in 28 milliseconds