Changeset 89525 in vbox for trunk/src/VBox/ValidationKit
- Timestamp:
- Jun 6, 2021 10:38:43 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/utils/audio/vkat.cpp
r89521 r89525 1814 1814 PCPDMAUDIOSTREAMCFG pCfgAcq, const char *pszFile) 1815 1815 { 1816 uint32_t const cbPreBuffer = PDMAudioPropsFramesToBytes(pMix->pProps, pCfgAcq->Backend.cFramesPreBuffering); 1817 uint64_t const nsStarted = RTTimeNanoTS(); 1816 uint32_t const cbPreBuffer = PDMAudioPropsFramesToBytes(pMix->pProps, pCfgAcq->Backend.cFramesPreBuffering); 1817 uint64_t const nsStarted = RTTimeNanoTS(); 1818 uint64_t nsDonePreBuffering = 0; 1818 1819 1819 1820 /* … … 1833 1834 if (offStream >= cbPreBuffer) 1834 1835 { 1835 uint64_t const cNsWritten = PDMAudioPropsBytesToNano64(pMix->pProps, offStream); 1836 if (!nsDonePreBuffering) 1837 nsDonePreBuffering = RTTimeNanoTS(); 1838 uint64_t const cNsWritten = PDMAudioPropsBytesToNano64(pMix->pProps, offStream - cbPreBuffer); 1836 1839 uint64_t const cNsElapsed = RTTimeNanoTS() - nsStarted; 1837 1840 if (cNsWritten > cNsElapsed + RT_NS_10MS)
Note:
See TracChangeset
for help on using the changeset viewer.