Changeset 63846 in vbox for trunk/src/VBox/Devices
- Timestamp:
- Sep 15, 2016 9:44:37 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/AudioMixer.cpp
r63845 r63846 1304 1304 AssertPtr(pConn); 1305 1305 1306 uint32_t c Captured= 0;1306 uint32_t cProc = 0; 1307 1307 1308 1308 int rc2 = pConn->pfnStreamIterate(pConn, pStream); … … 1311 1311 if (pSink->enmDir == AUDMIXSINKDIR_INPUT) 1312 1312 { 1313 rc = pConn->pfnStreamCapture(pConn, pStream, &c Captured);1313 rc = pConn->pfnStreamCapture(pConn, pStream, &cProc); 1314 1314 if (RT_FAILURE(rc2)) 1315 1315 { … … 1320 1320 } 1321 1321 1322 if (c Captured)1322 if (cProc) 1323 1323 pSink->fStatus |= AUDMIXSINK_STS_DIRTY; 1324 1324 } 1325 1325 else if (pSink->enmDir == AUDMIXSINKDIR_OUTPUT) 1326 1326 { 1327 rc2 = pConn->pfnStreamPlay(pConn, pStream, NULL /* cPlayed */);1327 rc2 = pConn->pfnStreamPlay(pConn, pStream, &cProc); 1328 1328 if (RT_FAILURE(rc2)) 1329 1329 { … … 1386 1386 } 1387 1387 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(); 1390 1396 1391 1397 /* All streams disabled and the sink is in pending disable mode? */ … … 1395 1401 audioMixerSinkReset(pSink); 1396 1402 } 1397 1398 /* Update last updated timestamp. */1399 pSink->tsLastUpdatedMS = RTTimeMilliTS();1400 1403 1401 1404 Log3Func(("[%s] cbReadable=%RU32, cbWritable=%RU32, rc=%Rrc\n", … … 1516 1519 if (!(pMixStream->pConn->pfnStreamGetStatus(pMixStream->pConn, pMixStream->pStream) & PDMAUDIOSTRMSTS_FLAG_ENABLED)) 1517 1520 { 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)); 1519 1522 continue; 1520 1523 }
Note:
See TracChangeset
for help on using the changeset viewer.