Changeset 87767 in vbox for trunk/src/VBox/Devices/Audio/DevSB16.cpp
- Timestamp:
- Feb 16, 2021 4:41:18 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/DevSB16.cpp
r87760 r87767 300 300 * @callback_method_impl{PFNTMTIMERDEV} 301 301 */ 302 static DECLCALLBACK(void) sb16TimerIRQ(PPDMDEVINS pDevIns, PTMTIMER pTimer, void *pvUser)302 static DECLCALLBACK(void) sb16TimerIRQ(PPDMDEVINS pDevIns, TMTIMERHANDLE hTimer, void *pvUser) 303 303 { 304 304 PSB16STATE pThis = PDMDEVINS_2_DATA(pDevIns, PSB16STATE); 305 RT_NOREF(pvUser, pTimer);305 RT_NOREF(pvUser, hTimer); 306 306 307 307 pThis->can_write = 1; … … 1689 1689 * @callback_method_impl{FNTMTIMERDEV} 1690 1690 */ 1691 static DECLCALLBACK(void) sb16TimerIO(PPDMDEVINS pDevIns, PTMTIMER pTimer, void *pvUser)1691 static DECLCALLBACK(void) sb16TimerIO(PPDMDEVINS pDevIns, TMTIMERHANDLE hTimer, void *pvUser) 1692 1692 { 1693 1693 PSB16STATE pThis = PDMDEVINS_2_DATA(pDevIns, PSB16STATE); 1694 RT_NOREF(pTimer,pvUser);1695 1696 uint64_t cTicksNow = PDMDevHlpTimerGet(pDevIns, pThis->hTimerIO);1694 Assert(hTimer == pThis->hTimerIO); RT_NOREF(pvUser); 1695 1696 uint64_t cTicksNow = PDMDevHlpTimerGet(pDevIns, hTimer); 1697 1697 bool fIsPlaying = false; /* Whether one or more streams are still playing. */ 1698 1698 bool fDoTransfer = false; … … 1749 1749 uint64_t cTicks = pThis->cTicksTimerIOInterval; 1750 1750 /** @todo adjust cTicks down by now much cbOutMin represents. */ 1751 PDMDevHlpTimerSet(pDevIns, pThis->hTimerIO, cTicksNow + cTicks);1751 PDMDevHlpTimerSet(pDevIns, hTimer, cTicksNow + cTicks); 1752 1752 } 1753 1753 }
Note:
See TracChangeset
for help on using the changeset viewer.