Changeset 68085 in vbox for trunk/src/VBox/Devices/Audio/DrvHostValidationKit.cpp
- Timestamp:
- Jul 21, 2017 12:52:58 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/DrvHostValidationKit.cpp
r67282 r68085 243 243 */ 244 244 static DECLCALLBACK(int) drvHostVaKitAudioStreamPlay(PPDMIHOSTAUDIO pInterface, 245 PPDMAUDIOBACKENDSTREAM pStream, const void *pvBuf, uint32_t c bBuf,246 uint32_t *pc bWritten)245 PPDMAUDIOBACKENDSTREAM pStream, const void *pvBuf, uint32_t cxBuf, 246 uint32_t *pcxWritten) 247 247 { 248 248 PDRVHOSTVAKITAUDIO pDrv = RT_FROM_MEMBER(pInterface, DRVHOSTVAKITAUDIO, IHostAudio); … … 265 265 266 266 // Microseconds are used everythere below 267 uint32_t sBuf = c bBuf >> pStreamDbg->pCfg->Props.cShift;267 uint32_t sBuf = cxBuf >> pStreamDbg->pCfg->Props.cShift; 268 268 cch = RTStrPrintf(szTimingInfo, sizeof(szTimingInfo), "%d %d %d %d\n", 269 269 (uint32_t)(tsSinceStart / 1000), // Host time elapsed since Guest submitted the first buffer for playback … … 277 277 // pStreamDbg->Out.tsLastPlayed = PDMDrvHlpTMGetVirtualTime(pDrv->pDrvIns);; 278 278 279 int rc2 = DrvAudioHlpWAVFileWrite(&pStreamDbg->File, pvBuf, c bBuf, 0 /* fFlags */);279 int rc2 = DrvAudioHlpWAVFileWrite(&pStreamDbg->File, pvBuf, cxBuf, 0 /* fFlags */); 280 280 if (RT_FAILURE(rc2)) 281 281 LogRel(("DebugAudio: Writing output failed with %Rrc\n", rc2)); 282 282 283 *pc bWritten = cbBuf;283 *pcxWritten = cxBuf; 284 284 285 285 return VINF_SUCCESS; … … 291 291 */ 292 292 static DECLCALLBACK(int) drvHostVaKitAudioStreamCapture(PPDMIHOSTAUDIO pInterface, 293 PPDMAUDIOBACKENDSTREAM pStream, void *pvBuf, uint32_t cbBuf, uint32_t *pcbRead) 294 { 295 RT_NOREF(pInterface, pStream, pvBuf, cbBuf); 293 PPDMAUDIOBACKENDSTREAM pStream, void *pvBuf, uint32_t cxBuf, 294 uint32_t *pcxRead) 295 { 296 RT_NOREF(pInterface, pStream, pvBuf, cxBuf); 296 297 297 298 /* Never capture anything. */ 298 if (pc bRead)299 *pc bRead = 0;299 if (pcxRead) 300 *pcxRead = 0; 300 301 301 302 return VINF_SUCCESS;
Note:
See TracChangeset
for help on using the changeset viewer.