Changeset 89433 in vbox for trunk/src/VBox/ValidationKit/utils/audio/vkat.cpp
- Timestamp:
- Jun 1, 2021 1:10:00 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/utils/audio/vkat.cpp
r89432 r89433 432 432 const uint16_t cSchedulingMs = RTRandU32Ex(10, 80); /* Choose a random scheduling (in ms). */ 433 433 const uint32_t cbPerMs = PDMAudioPropsMilliToBytes(&pParms->Props, cSchedulingMs); 434 size_t cbToWrite = PDMAudioPropsMilliToBytes(&pParms->Props, pParms->msDuration);434 uint32_t cbToWrite = PDMAudioPropsMilliToBytes(&pParms->Props, pParms->msDuration); 435 435 436 436 AudioTestSetObjAddMetadataStr(pObj, "schedule_ms=%RU16", cSchedulingMs); … … 439 439 { 440 440 uint32_t cbWritten = 0; 441 uint32_t cbToGenerate = RT_MIN(cbToWrite, RT_MIN(cbPerMs, sizeof(abBuf)));441 uint32_t cbToGenerate = RT_MIN(cbToWrite, RT_MIN(cbPerMs, (uint32_t)sizeof(abBuf))); 442 442 Assert(cbToGenerate); 443 443 … … 1704 1704 if (offStream >= cbPreBuffer) 1705 1705 { 1706 uint64_t const cNsWritten = PDMAudioPropsBytesToNano 64(&pStream->Props, offStream);1706 uint64_t const cNsWritten = PDMAudioPropsBytesToNano(&pStream->Props, offStream); 1707 1707 uint64_t const cNsElapsed = RTTimeNanoTS() - nsStarted; 1708 1708 if (cNsWritten + RT_NS_10MS > cNsElapsed)
Note:
See TracChangeset
for help on using the changeset viewer.