VirtualBox

Ignore:
Timestamp:
Jun 1, 2021 1:10:00 PM (4 years ago)
Author:
vboxsync
Message:

Audio/ValKit: More infrastructure code [build fix]. bugref:10008

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/utils/audio/vkat.cpp

    r89432 r89433  
    432432        const uint16_t cSchedulingMs = RTRandU32Ex(10, 80); /* Choose a random scheduling (in ms). */
    433433        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);
    435435
    436436        AudioTestSetObjAddMetadataStr(pObj, "schedule_ms=%RU16", cSchedulingMs);
     
    439439        {
    440440            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)));
    442442            Assert(cbToGenerate);
    443443
     
    17041704                            if (offStream >= cbPreBuffer)
    17051705                            {
    1706                                 uint64_t const cNsWritten = PDMAudioPropsBytesToNano64(&pStream->Props, offStream);
     1706                                uint64_t const cNsWritten = PDMAudioPropsBytesToNano(&pStream->Props, offStream);
    17071707                                uint64_t const cNsElapsed = RTTimeNanoTS() - nsStarted;
    17081708                                if (cNsWritten + RT_NS_10MS > cNsElapsed)
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette