Changeset 64570 in vbox
- Timestamp:
- Nov 4, 2016 12:40:11 PM (8 years ago)
- svn:sync-xref-src-repo-rev:
- 111758
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/DevIchAc97.cpp
r64393 r64570 1462 1462 static void ichac97TimerMaybeStart(PAC97STATE pThis) 1463 1463 { 1464 if (pThis->cStreamsActive == 0) /* Only start the timer if there a re noactive streams. */1464 if (pThis->cStreamsActive == 0) /* Only start the timer if there at least is one active streams. */ 1465 1465 return; 1466 1466 … … 1518 1518 1519 1519 /* Flag indicating whether to kick the timer again for the next DMA transfer or sink processing. */ 1520 bool f DoNextTransfer = false;1520 bool fKickTimer = false; 1521 1521 1522 1522 uint32_t cbToProcess; … … 1530 1530 1531 1531 if (AudioMixerSinkGetStatus(pThis->pSinkLineIn) & AUDMIXSINK_STS_DIRTY) 1532 f DoNextTransfer = true;1532 fKickTimer = true; 1533 1533 } 1534 1534 … … 1541 1541 1542 1542 if (AudioMixerSinkGetStatus(pThis->pSinkMicIn) & AUDMIXSINK_STS_DIRTY) 1543 f DoNextTransfer = true;1543 fKickTimer = true; 1544 1544 } 1545 1545 … … 1552 1552 1553 1553 if (AudioMixerSinkGetStatus(pThis->pSinkOut) & AUDMIXSINK_STS_DIRTY) 1554 f DoNextTransfer = true;1555 } 1556 1557 if (f DoNextTransfer)1554 fKickTimer = true; 1555 } 1556 1557 if (fKickTimer) 1558 1558 { 1559 1559 /* Kick the timer again. */ … … 3010 3010 if (RT_SUCCESS(rc)) 3011 3011 { 3012 /* Startthe emulation timer. */3012 /* Create the emulation timer. */ 3013 3013 rc = PDMDevHlpTMTimerCreate(pDevIns, TMCLOCK_VIRTUAL, ichac97Timer, pThis, 3014 3014 TMTIMER_FLAGS_NO_CRIT_SECT, "DevIchAc97", &pThis->pTimer);
Note:
See TracChangeset
for help on using the changeset viewer.