VirtualBox

Changeset 63846 in vbox for trunk/src/VBox/Devices


Ignore:
Timestamp:
Sep 15, 2016 9:44:37 AM (8 years ago)
Author:
vboxsync
Message:

Audio/AudioMixer.cpp: Logging.

File:
1 edited

Legend:

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

    r63845 r63846  
    13041304        AssertPtr(pConn);
    13051305
    1306         uint32_t cCaptured = 0;
     1306        uint32_t cProc = 0;
    13071307
    13081308        int rc2 = pConn->pfnStreamIterate(pConn, pStream);
     
    13111311            if (pSink->enmDir == AUDMIXSINKDIR_INPUT)
    13121312            {
    1313                 rc = pConn->pfnStreamCapture(pConn, pStream, &cCaptured);
     1313                rc = pConn->pfnStreamCapture(pConn, pStream, &cProc);
    13141314                if (RT_FAILURE(rc2))
    13151315                {
     
    13201320                }
    13211321
    1322                 if (cCaptured)
     1322                if (cProc)
    13231323                    pSink->fStatus |= AUDMIXSINK_STS_DIRTY;
    13241324            }
    13251325            else if (pSink->enmDir == AUDMIXSINKDIR_OUTPUT)
    13261326            {
    1327                 rc2 = pConn->pfnStreamPlay(pConn, pStream, NULL /* cPlayed */);
     1327                rc2 = pConn->pfnStreamPlay(pConn, pStream, &cProc);
    13281328                if (RT_FAILURE(rc2))
    13291329                {
     
    13861386        }
    13871387
    1388         Log3Func(("\t%s: cCaptured=%RU32\n", pStream->szName, cCaptured));
    1389     }
     1388        Log3Func(("\t%s: cProc=%RU32, rc2=%Rrc\n", pStream->szName, cProc, rc2));
     1389    }
     1390
     1391    Log3Func(("[%s] fPendingDisable=%RTbool, %RU8/%RU8 streams disabled\n",
     1392              RT_BOOL(pSink->fStatus & AUDMIXSINK_STS_PENDING_DISABLE), pSink->pszName, cStreamsDisabled, pSink->cStreams));
     1393
     1394    /* Update last updated timestamp. */
     1395    pSink->tsLastUpdatedMS = RTTimeMilliTS();
    13901396
    13911397    /* All streams disabled and the sink is in pending disable mode? */
     
    13951401        audioMixerSinkReset(pSink);
    13961402    }
    1397 
    1398     /* Update last updated timestamp. */
    1399     pSink->tsLastUpdatedMS = RTTimeMilliTS();
    14001403
    14011404    Log3Func(("[%s] cbReadable=%RU32, cbWritable=%RU32, rc=%Rrc\n",
     
    15161519        if (!(pMixStream->pConn->pfnStreamGetStatus(pMixStream->pConn, pMixStream->pStream) & PDMAUDIOSTRMSTS_FLAG_ENABLED))
    15171520        {
    1518             Log3Func(("\t%s: Stream '%s' Disabled, skipping ...\n", pMixStream->pszName, pMixStream->pStream->szName));
     1521            Log3Func(("\t%s: Stream '%s' disabled, skipping ...\n", pMixStream->pszName, pMixStream->pStream->szName));
    15191522            continue;
    15201523        }
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