Changeset 87876 in vbox
- Timestamp:
- Feb 25, 2021 4:39:28 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/DrvAudio.cpp
r87875 r87876 1355 1355 1356 1356 uint8_t *pvChunk = (uint8_t *)pThis->pvScratchBuf; 1357 uint32_t cbChunk = pThis->cbScratchBuf;1357 uint32_t cbChunk = (uint32_t)pThis->cbScratchBuf; 1358 1358 1359 1359 while (cfLeft) … … 1439 1439 1440 1440 PPDMAUDIOFRAME paFrames = (PPDMAUDIOFRAME)pThis->pvScratchBuf; 1441 const size_t cFrames= pThis->cbScratchBuf / sizeof(PDMAUDIOFRAME);1441 const uint32_t cFrames = pThis->cbScratchBuf / sizeof(PDMAUDIOFRAME); 1442 1442 1443 1443 uint32_t cfLeft = cfToPlay; … … 1740 1740 uint32_t cbCaptured; 1741 1741 rc = pThis->pHostDrvAudio->pfnStreamCapture(pThis->pHostDrvAudio, pStream->pvBackend, 1742 pThis->pvScratchBuf, RT_MIN(cbReadable, pThis->cbScratchBuf), &cbCaptured);1742 pThis->pvScratchBuf, RT_MIN(cbReadable, (uint32_t)pThis->cbScratchBuf), &cbCaptured); 1743 1743 if (RT_FAILURE(rc)) 1744 1744 { … … 1751 1751 Assert(cbCaptured <= pThis->cbScratchBuf); 1752 1752 if (cbCaptured > pThis->cbScratchBuf) /* Paranoia. */ 1753 cbCaptured = pThis->cbScratchBuf;1753 cbCaptured = (uint32_t)pThis->cbScratchBuf; 1754 1754 1755 1755 if (!cbCaptured) /* Nothing captured? Take a shortcut. */
Note:
See TracChangeset
for help on using the changeset viewer.