VirtualBox

Changeset 73729 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Aug 17, 2018 9:04:00 AM (6 years ago)
Author:
vboxsync
Message:

Audio/DrvHostDSound.cpp: Renaming, logging, formatting.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Audio/DrvHostDSound.cpp

    r73727 r73729  
    163163            /** Timestamp (in ms) of the last transfer from the internal buffer
    164164             *  to the DirectSound buffer. */
    165             uint64_t                    tsLastTransferred;
     165            uint64_t                    tsLastTransferredMs;
    166166            /** Number of buffer underruns happened. Used for logging. */
    167167            uint8_t                     cUnderruns;
     
    869869#endif
    870870
    871 
    872871    while (cbToTransfer)
    873872    {
     
    929928        && cbTransferred)
    930929    {
    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));
    933935    }
    934936
     
    10511053        pStreamDS->Out.cUnderruns     = 0;
    10521054
    1053         pStreamDS->Out.cbLastTransferred = 0;
    1054         pStreamDS->Out.tsLastTransferred = 0;
     1055        pStreamDS->Out.cbLastTransferred   = 0;
     1056        pStreamDS->Out.tsLastTransferredMs = 0;
    10551057
    10561058        pStreamDS->Out.cbTransferred = 0;
     
    18341836                pStreamDS->Out.fFirstTransfer    = false;
    18351837                pStreamDS->Out.cbLastTransferred = pStreamDS->Out.cbTransferred; /* All transferred audio data must be played. */
    1836                 pStreamDS->Out.tsLastTransferred = RTTimeMilliTS();
     1838                pStreamDS->Out.tsLastTransferredMs = RTTimeMilliTS();
    18371839
    18381840                hr = directSoundPlayStart(pThis, pStreamDS);
     
    23092311        if (!cbPending)
    23102312        {
    2311             const uint64_t diffLastTransferredMs  = RTTimeMilliTS() - pStreamDS->Out.tsLastTransferred;
     2313            const uint64_t diffLastTransferredMs  = RTTimeMilliTS() - pStreamDS->Out.tsLastTransferredMs;
    23122314            const uint64_t uLastTranserredChunkMs = DrvAudioHlpBytesToMilli(pStreamDS->Out.cbLastTransferred, &pStreamDS->Cfg.Props);
    23132315            if (   uLastTranserredChunkMs
Note: See TracChangeset for help on using the changeset viewer.

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