- Timestamp:
- Jul 26, 2018 2:00:40 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-client/DrvAudioVRDE.cpp
r73370 r73372 74 74 PRTCIRCBUF pCircBuf; 75 75 } In; 76 struct77 {78 uint32_t last;79 } Out;80 76 }; 81 77 } VRDESTREAM, *PVRDESTREAM; … … 296 292 pProps->fSigned); 297 293 298 const uint64_t ticksNow = PDMDrvHlpTMGetVirtualTime(pDrv->pDrvIns);299 const uint64_t ticksElapsed = ticksNow - pStreamVRDE->Out.last;300 const uint64_t ticksPerSec = PDMDrvHlpTMGetVirtualFreq(pDrv->pDrvIns);301 302 /* Remember when frames were consumed. */303 pStreamVRDE->Out.last = PDMDrvHlpTMGetVirtualTime(pDrv->pDrvIns);304 305 Log3Func(("FOOO -- %d\n", (int)((2 * ticksElapsed * pProps->uHz + ticksPerSec) / ticksPerSec / 2)));306 307 294 /* Use the internal counter to track if we (still) can write to the VRDP server 308 295 * or if we need to wait another round (time slot). */ 309 uint32_t cfToWrite = cfLive; //pStreamVRDE->Out.cfToWrite;296 uint32_t cfToWrite = cfLive; 310 297 311 298 Log3Func(("cfLive=%RU32, cfToWrite=%RU32\n", cfLive, cfToWrite));
Note:
See TracChangeset
for help on using the changeset viewer.