Lines Matching refs:cbToWrite
555 size_t cbToWrite = 0;
556 RTCircBufAcquireWriteBlock(pStreamIn->pBuf, cbAvail, (void **)&puDst, &cbToWrite);
557 if (!cbToWrite)
563 UInt32 ioOutputDataPacketSize = cbToWrite / pStreamIn->streamFormat.mBytesPerPacket;
566 tmpList.mBuffers[0].mDataByteSize = cbToWrite;
583 cbToWrite = ioOutputDataPacketSize * pStreamIn->streamFormat.mBytesPerPacket;
586 RTCircBufReleaseWriteBlock(pStreamIn->pBuf, cbToWrite);
593 Assert(cbAvail >= cbToWrite);
594 cbAvail -= cbToWrite;
625 size_t cbToWrite = 0;
626 RTCircBufAcquireWriteBlock(pStreamIn->pBuf, cbAvail, (void **)&puDst, &cbToWrite);
627 if (!cbToWrite)
631 memcpy(puDst, (uint8_t *)pStreamIn->bufferList.mBuffers[0].mData + cbWrittenTotal, cbToWrite);
634 RTCircBufReleaseWriteBlock(pStreamIn->pBuf, cbToWrite);
636 cbWrittenTotal += cbToWrite;
638 Assert(cbAvail >= cbToWrite);
639 cbAvail -= cbToWrite;
1323 size_t cbToWrite = RT_MIN(cbBuf, RTCircBufFree(pStreamIn->pBuf));
1324 LogFlowFunc(("cbToWrite=%zu\n", cbToWrite));
1330 while (cbToWrite)
1333 RTCircBufAcquireReadBlock(pStreamIn->pBuf, cbToWrite, (void **)&puBuf, &cbToRead);
1349 Assert(cbToWrite >= cbWritten);
1350 cbToWrite -= cbWritten;
1485 size_t cbToWrite;
1498 RTCircBufAcquireWriteBlock(pStreamOut->pBuf, cbRead, (void **)&puBuf, &cbToWrite);
1499 if (!cbToWrite)
1501 RTCircBufReleaseWriteBlock(pStreamOut->pBuf, cbToWrite);
1507 Assert(cbToWrite <= cbRead);
1508 memcpy(puBuf, pStreamOut->pvPCMBuf, cbToWrite);
1511 RTCircBufReleaseWriteBlock(pStreamOut->pBuf, cbToWrite);