VirtualBox

Changeset 62590 in vbox


Ignore:
Timestamp:
Jul 27, 2016 1:04:42 PM (9 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
109159
Message:

Audio: Handle last read/written/iteration timestamps.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • 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));
Note: See TracChangeset for help on using the changeset viewer.

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