VirtualBox

Ignore:
Timestamp:
Jul 21, 2017 12:52:58 PM (7 years ago)
Author:
vboxsync
Message:

Build fix.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Audio/DrvHostValidationKit.cpp

    r67282 r68085  
    243243 */
    244244static DECLCALLBACK(int) drvHostVaKitAudioStreamPlay(PPDMIHOSTAUDIO pInterface,
    245                                                      PPDMAUDIOBACKENDSTREAM pStream, const void *pvBuf, uint32_t cbBuf,
    246                                                      uint32_t *pcbWritten)
     245                                                     PPDMAUDIOBACKENDSTREAM pStream, const void *pvBuf, uint32_t cxBuf,
     246                                                     uint32_t *pcxWritten)
    247247{
    248248    PDRVHOSTVAKITAUDIO pDrv       = RT_FROM_MEMBER(pInterface, DRVHOSTVAKITAUDIO, IHostAudio);
     
    265265
    266266    // Microseconds are used everythere below
    267     uint32_t sBuf = cbBuf >> pStreamDbg->pCfg->Props.cShift;
     267    uint32_t sBuf = cxBuf >> pStreamDbg->pCfg->Props.cShift;
    268268    cch = RTStrPrintf(szTimingInfo, sizeof(szTimingInfo), "%d %d %d %d\n",
    269269        (uint32_t)(tsSinceStart / 1000), // Host time elapsed since Guest submitted the first buffer for playback
     
    277277   // pStreamDbg->Out.tsLastPlayed = PDMDrvHlpTMGetVirtualTime(pDrv->pDrvIns);;
    278278
    279     int rc2 = DrvAudioHlpWAVFileWrite(&pStreamDbg->File, pvBuf, cbBuf, 0 /* fFlags */);
     279    int rc2 = DrvAudioHlpWAVFileWrite(&pStreamDbg->File, pvBuf, cxBuf, 0 /* fFlags */);
    280280    if (RT_FAILURE(rc2))
    281281        LogRel(("DebugAudio: Writing output failed with %Rrc\n", rc2));
    282282
    283     *pcbWritten = cbBuf;
     283    *pcxWritten = cxBuf;
    284284
    285285    return VINF_SUCCESS;
     
    291291 */
    292292static 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);
    296297
    297298    /* Never capture anything. */
    298     if (pcbRead)
    299         *pcbRead = 0;
     299    if (pcxRead)
     300        *pcxRead = 0;
    300301
    301302    return VINF_SUCCESS;
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette