Lines Matching refs:pInBuffer
1623 Buffer *pInBuffer; in write() local
1638 pInBuffer = mBufferQueue.itemAt(0); in write()
1640 pInBuffer = &inBuffer; in write()
1643 if (pInBuffer->frameCount == 0) { in write()
1648 mOutBuffer.frameCount = pInBuffer->frameCount; in write()
1670 uint32_t outFrames = pInBuffer->frameCount > mOutBuffer.frameCount ? mOutBuffer.frameCount : in write()
1671 pInBuffer->frameCount; in write()
1672 memcpy(mOutBuffer.raw, pInBuffer->raw, outFrames * mFrameSize); in write()
1678 pInBuffer->frameCount -= outFrames; in write()
1679 pInBuffer->raw = (int8_t *)pInBuffer->raw + outFrames * mFrameSize; in write()
1683 if (pInBuffer->frameCount == 0) { in write()
1686 free(pInBuffer->mBuffer); in write()
1687 if (pInBuffer != &inBuffer) { in write()
1688 delete pInBuffer; in write()
1704 pInBuffer = new Buffer; in write()
1705 pInBuffer->mBuffer = malloc(inBuffer.frameCount * mFrameSize); in write()
1706 pInBuffer->frameCount = inBuffer.frameCount; in write()
1707 pInBuffer->raw = pInBuffer->mBuffer; in write()
1708 memcpy(pInBuffer->raw, inBuffer.raw, inBuffer.frameCount * mFrameSize); in write()
1709 mBufferQueue.add(pInBuffer); in write()