Home
last modified time | relevance | path

Searched refs:srcFrames (Results 1 – 5 of 5) sorted by relevance

/frameworks/av/media/libaudioprocessing/
DBufferProviders.cpp561 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()
[all …]
/frameworks/av/include/media/
DAudioResamplerPublic.h145 static inline size_t destinationFramesPossible(size_t srcFrames, uint32_t srcSampleRate, in destinationFramesPossible() argument
148 return srcFrames; in destinationFramesPossible()
150 uint64_t dstFrames = (uint64_t)srcFrames * dstSampleRate / srcSampleRate; in destinationFramesPossible()
DBufferProviders.h200 const void *srcBuffer, size_t *srcFrames);
/frameworks/av/media/libaudioprocessing/include/media/
DAudioResamplerPublic.h145 static inline size_t destinationFramesPossible(size_t srcFrames, uint32_t srcSampleRate, in destinationFramesPossible() argument
148 return srcFrames; in destinationFramesPossible()
150 uint64_t dstFrames = (uint64_t)srcFrames * dstSampleRate / srcSampleRate; in destinationFramesPossible()
/frameworks/av/media/libmedia/include/media/
DBufferProviders.h200 const void *srcBuffer, size_t *srcFrames);