Changeset 73729 in vbox for trunk/src/VBox
- Timestamp:
- Aug 17, 2018 9:04:00 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/DrvHostDSound.cpp
r73727 r73729 163 163 /** Timestamp (in ms) of the last transfer from the internal buffer 164 164 * to the DirectSound buffer. */ 165 uint64_t tsLastTransferred ;165 uint64_t tsLastTransferredMs; 166 166 /** Number of buffer underruns happened. Used for logging. */ 167 167 uint8_t cUnderruns; … … 869 869 #endif 870 870 871 872 871 while (cbToTransfer) 873 872 { … … 929 928 && cbTransferred) 930 929 { 931 pStreamDS->Out.cbLastTransferred = cbTransferred; 932 pStreamDS->Out.tsLastTransferred = RTTimeMilliTS(); 930 pStreamDS->Out.cbLastTransferred = cbTransferred; 931 pStreamDS->Out.tsLastTransferredMs = RTTimeMilliTS(); 932 933 LogFlowFunc(("cbLastTransferred=%RU32, tsLastTransferredMs=%RU64\n", 934 pStreamDS->Out.cbLastTransferred, pStreamDS->Out.tsLastTransferredMs)); 933 935 } 934 936 … … 1051 1053 pStreamDS->Out.cUnderruns = 0; 1052 1054 1053 pStreamDS->Out.cbLastTransferred = 0;1054 pStreamDS->Out.tsLastTransferred = 0;1055 pStreamDS->Out.cbLastTransferred = 0; 1056 pStreamDS->Out.tsLastTransferredMs = 0; 1055 1057 1056 1058 pStreamDS->Out.cbTransferred = 0; … … 1834 1836 pStreamDS->Out.fFirstTransfer = false; 1835 1837 pStreamDS->Out.cbLastTransferred = pStreamDS->Out.cbTransferred; /* All transferred audio data must be played. */ 1836 pStreamDS->Out.tsLastTransferred = RTTimeMilliTS();1838 pStreamDS->Out.tsLastTransferredMs = RTTimeMilliTS(); 1837 1839 1838 1840 hr = directSoundPlayStart(pThis, pStreamDS); … … 2309 2311 if (!cbPending) 2310 2312 { 2311 const uint64_t diffLastTransferredMs = RTTimeMilliTS() - pStreamDS->Out.tsLastTransferred ;2313 const uint64_t diffLastTransferredMs = RTTimeMilliTS() - pStreamDS->Out.tsLastTransferredMs; 2312 2314 const uint64_t uLastTranserredChunkMs = DrvAudioHlpBytesToMilli(pStreamDS->Out.cbLastTransferred, &pStreamDS->Cfg.Props); 2313 2315 if ( uLastTranserredChunkMs
Note:
See TracChangeset
for help on using the changeset viewer.