VirtualBox

Changeset 89521 in vbox


Ignore:
Timestamp:
Jun 5, 2021 12:19:23 AM (3 years ago)
Author:
vboxsync
Message:

ValKit/AudioTest: Corrected pacing code in 'play'. bugref:10008

File:
1 edited

Legend:

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

    r89520 r89521  
    18351835                uint64_t const cNsWritten = PDMAudioPropsBytesToNano64(pMix->pProps, offStream);
    18361836                uint64_t const cNsElapsed = RTTimeNanoTS() - nsStarted;
    1837                 if (cNsWritten + RT_NS_10MS > cNsElapsed)
     1837                if (cNsWritten > cNsElapsed + RT_NS_10MS)
    18381838                    RTThreadSleep((cNsWritten - cNsElapsed - RT_NS_10MS / 2) / RT_NS_1MS);
    18391839            }
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