Changeset 62919 in vbox for trunk/src/VBox/Devices/Audio/DrvHostDebugAudio.cpp
- Timestamp:
- Aug 3, 2016 2:16:14 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/DrvHostDebugAudio.cpp
r62580 r62919 167 167 168 168 /* Consume as many samples as would be played at the current frequency since last call. */ 169 uint32_t cLive = AudioMixBufLive(&pStream->MixBuf);169 /*uint32_t cLive = AudioMixBufLive(&pStream->MixBuf);*/ 170 170 171 171 uint64_t u64TicksNow = PDMDrvHlpTMGetVirtualTime(pDrv->pDrvIns); 172 uint64_t u64TicksElapsed = u64TicksNow - pDbgStream->Out.tsLastPlayed;173 uint64_t u64TicksFreq = PDMDrvHlpTMGetVirtualFreq(pDrv->pDrvIns);172 // uint64_t u64TicksElapsed = u64TicksNow - pDbgStream->Out.tsLastPlayed; 173 // uint64_t u64TicksFreq = PDMDrvHlpTMGetVirtualFreq(pDrv->pDrvIns); 174 174 175 175 /* … … 229 229 uint32_t *pcSamplesCaptured) 230 230 { 231 RT_NOREF(pInterface, pStream); 232 231 233 /* Never capture anything. */ 232 234 if (pcSamplesCaptured) … … 238 240 static int debugDestroyStreamIn(PPDMIHOSTAUDIO pInterface, PPDMAUDIOSTREAM pStream) 239 241 { 242 RT_NOREF(pInterface, pStream); 240 243 LogFlowFuncLeaveRC(VINF_SUCCESS); 241 244 return VINF_SUCCESS; … … 244 247 static int debugDestroyStreamOut(PPDMIHOSTAUDIO pInterface, PPDMAUDIOSTREAM pStream) 245 248 { 246 PPDMDRVINS pDrvIns = PDMIBASE_2_PDMDRV(pInterface); 247 249 RT_NOREF(pInterface); 248 250 PDEBUGAUDIOSTREAM pDbgStream = (PDEBUGAUDIOSTREAM)pStream; 249 251 if ( pDbgStream … … 270 272 static DECLCALLBACK(PDMAUDIOBACKENDSTS) drvHostDebugAudioGetStatus(PPDMIHOSTAUDIO pInterface, PDMAUDIODIR enmDir) 271 273 { 274 RT_NOREF(enmDir); 272 275 AssertPtrReturn(pInterface, PDMAUDIOBACKENDSTS_UNKNOWN); 273 276 … … 309 312 PPDMAUDIOSTREAM pStream, PDMAUDIOSTREAMCMD enmStreamCmd) 310 313 { 314 RT_NOREF(enmStreamCmd); 311 315 AssertPtrReturn(pInterface, VERR_INVALID_POINTER); 312 316 AssertPtrReturn(pStream, VERR_INVALID_POINTER); … … 359 363 static DECLCALLBACK(int) drvHostDebugAudioConstruct(PPDMDRVINS pDrvIns, PCFGMNODE pCfg, uint32_t fFlags) 360 364 { 361 AssertPtrReturn(pDrvIns, VERR_INVALID_POINTER); 362 /* pCfg is optional. */ 363 365 RT_NOREF(pCfg, fFlags); 366 PDMDRV_CHECK_VERSIONS_RETURN(pDrvIns); 364 367 PDRVHOSTDEBUGAUDIO pThis = PDMINS_2_DATA(pDrvIns, PDRVHOSTDEBUGAUDIO); 365 368 LogRel(("Audio: Initializing DEBUG driver\n"));
Note:
See TracChangeset
for help on using the changeset viewer.