Home
last modified time | relevance | path

Searched refs:patchBuffer (Results 1 – 2 of 2) sorted by relevance

/frameworks/av/services/audioflinger/fastpath/
DFastCapture.cpp159 AudioBufferProvider::Buffer patchBuffer; in onWork() local
162 patchBuffer.frameCount = ~0; in onWork()
163 const status_t status = fastPatchRecordBufferProvider->getNextBuffer(&patchBuffer); in onWork()
166 } else if (patchBuffer.frameCount < frameCount) { in onWork()
169 frameCount = patchBuffer.frameCount; in onWork()
186 patchBuffer.frameCount = framesRead; in onWork()
211 memcpy_by_audio_format(patchBuffer.raw, current->mFastPatchRecordFormat, in onWork()
213 patchBuffer.frameCount = framesWritten; in onWork()
214 fastPatchRecordBufferProvider->releaseBuffer(&patchBuffer); in onWork()
/frameworks/av/services/audioflinger/
DTracks.cpp3191 AudioBufferProvider::Buffer patchBuffer; in writeFramesHelper() local
3192 patchBuffer.frameCount = frameCount; in writeFramesHelper()
3193 auto status = dest->getNextBuffer(&patchBuffer); in writeFramesHelper()
3199 ALOG_ASSERT(patchBuffer.frameCount <= frameCount); in writeFramesHelper()
3200 memcpy(patchBuffer.raw, src, patchBuffer.frameCount * frameSize); in writeFramesHelper()
3201 size_t framesWritten = patchBuffer.frameCount; in writeFramesHelper()
3202 dest->releaseBuffer(&patchBuffer); in writeFramesHelper()