VirtualBox

Changeset 63828 in vbox


Ignore:
Timestamp:
Sep 14, 2016 9:43:14 AM (8 years ago)
Author:
vboxsync
Message:

Logging, some simplifications.

File:
1 edited

Legend:

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

    r63736 r63828  
    661661    }
    662662
     663    LogFlowFunc(("[%s]: enmCmd=%d, fStatus=0x%x, rc=%Rrc\n", pSink->pszName, enmSinkCmd, pSink->fStatus, rc));
     664
    663665    /* Not running anymore? Reset. */
    664666    if (!(pSink->fStatus & AUDMIXSINK_STS_RUNNING))
    665667        audioMixerSinkReset(pSink);
    666 
    667     LogFlowFunc(("[%s]: enmCmd=%d, fStatus=0x%x, rc=%Rrc\n", pSink->pszName, enmSinkCmd, pSink->fStatus, rc));
    668668
    669669    int rc2 = RTCritSectLeave(&pSink->CritSect);
     
    996996
    997997        PDMAUDIOSTRMSTS strmSts = pMixStream->pConn->pfnStreamGetStatus(pMixStream->pConn, pMixStream->pStream);
    998         fClean &= !(strmSts & PDMAUDIOSTRMSTS_FLAG_DATA_READABLE);
     998
     999        /* Still some data available? Then sink is not clean (yet). */
     1000        if (strmSts & PDMAUDIOSTRMSTS_FLAG_DATA_READABLE)
     1001            fClean = false;
    9991002    }
    10001003
     
    10181021#endif
    10191022
    1020     Log3Func(("[%s] cbRead=%RU32, fStatus=0x%x, rc=%Rrc\n", pSink->pszName, cbRead, pSink->fStatus, rc));
     1023    Log3Func(("[%s] cbRead=%RU32, fClean=%RTbool, fStatus=0x%x, rc=%Rrc\n", pSink->pszName, cbRead, fClean, pSink->fStatus, rc));
    10211024
    10221025    int rc2 = RTCritSectLeave(&pSink->CritSect);
     
    11111114        return;
    11121115
    1113     LogFunc(("%s\n", pSink->pszName));
     1116    LogFunc(("[%s]\n", pSink->pszName));
    11141117
    11151118    if (pSink->enmDir == AUDMIXSINKDIR_INPUT)
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