Lines Matching refs:pInBuffer
2279 Buffer *pInBuffer; in write() local
2287 pInBuffer = mBufferQueue.itemAt(0); in write()
2289 pInBuffer = &inBuffer; in write()
2292 if (pInBuffer->frameCount == 0) { in write()
2297 mOutBuffer.frameCount = pInBuffer->frameCount; in write()
2318 uint32_t outFrames = pInBuffer->frameCount > mOutBuffer.frameCount ? mOutBuffer.frameCount : in write()
2319 pInBuffer->frameCount; in write()
2320 memcpy(mOutBuffer.raw, pInBuffer->raw, outFrames * mFrameSize); in write()
2326 pInBuffer->frameCount -= outFrames; in write()
2327 pInBuffer->raw = (int8_t *)pInBuffer->raw + outFrames * mFrameSize; in write()
2331 if (pInBuffer->frameCount == 0) { in write()
2334 free(pInBuffer->mBuffer); in write()
2335 if (pInBuffer != &inBuffer) { in write()
2336 delete pInBuffer; in write()
2367 Buffer *pInBuffer = new Buffer; in queueBuffer() local
2369 pInBuffer->mBuffer = malloc(bufferSize); in queueBuffer()
2370 LOG_ALWAYS_FATAL_IF(pInBuffer->mBuffer == nullptr, in queueBuffer()
2372 pInBuffer->frameCount = inBuffer.frameCount; in queueBuffer()
2373 pInBuffer->raw = pInBuffer->mBuffer; in queueBuffer()
2374 memcpy(pInBuffer->raw, inBuffer.raw, inBuffer.frameCount * mFrameSize); in queueBuffer()
2375 mBufferQueue.add(pInBuffer); in queueBuffer()