VirtualBox

儲存庫 vbox 的更動 62590


忽略:
時間撮記:
2016-7-27 下午01:04:42 (8 年 以前)
作者:
vboxsync
訊息:

Audio: Handle last read/written/iteration timestamps.

位置:
trunk
檔案:
修改 2 筆資料

圖例:

未更動
新增
刪除
  • trunk/include/VBox/vmm/pdmaudioifs.h

    r62580 r62590  
    645645    /** Context of this stream. */
    646646    PDMAUDIOSTREAMCTX      enmCtx;
     647    /** Timestamp (in ms) since last iteration. */
     648    uint64_t               tsLastIterateMS;
    647649    /** Union for input/output specifics. */
    648650    union
  • trunk/src/VBox/Devices/Audio/DrvAudio.cpp

    r62580 r62590  
    718718                  ("Writing to disabled guest output stream \"%s\" not possible\n", pGstStream->szName));
    719719
     720        pGstStream->Out.tsLastWriteMS = RTTimeMilliTS();
     721
    720722        if (!AudioMixBufFreeBytes(&pGstStream->MixBuf))
    721723        {
     
    898900
    899901    } while (0);
     902
     903    /* Update timestamps. */
     904    pHstStream->tsLastIterateMS = RTTimeMilliTS();
     905    pGstStream->tsLastIterateMS = RTTimeMilliTS();
    900906
    901907    if (RT_FAILURE(rc))
     
    13841390        AssertMsg(pHstStream->fStatus & PDMAUDIOSTRMSTS_FLAG_ENABLED,
    13851391                  ("Reading from disabled host input stream '%s' not possible\n", pHstStream->szName));
     1392
     1393        pGstStream->In.tsLastReadMS = RTTimeMilliTS();
    13861394
    13871395        Log3Func(("%s\n", pStream->szName));
注意: 瀏覽 TracChangeset 來幫助您使用更動檢視器

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