VirtualBox

Changeset 65566 in vbox for trunk/src/VBox/Devices


Ignore:
Timestamp:
Feb 1, 2017 2:21:22 PM (8 years ago)
Author:
vboxsync
Message:

Build fix.

Location:
trunk/src/VBox/Devices/Audio
Files:
2 edited

Legend:

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

    r65565 r65566  
    11831183        }
    11841184
    1185         size_t cbToRead = RT_MIN(PDMAUDIOPCMPROPS_S2B(&pStreamALSA->Props, cAvail), cbBuf);
     1185        size_t cbToRead = RT_MIN((unsigned)PDMAUDIOPCMPROPS_S2B(&pStreamALSA->Props, cAvail), cbBuf);
    11861186        if (!cbToRead)
    11871187            break;
  • trunk/src/VBox/Devices/Audio/DrvHostDSound.cpp

    r65565 r65566  
    747747    DWORD cb1, cb2;
    748748    HRESULT hr = directSoundPlayLock(pThis, pDSoundStream->pDSB, &pDSoundStream->Props,
    749                                      0 /* dwOffset */,
    750                                      &pDSoundStream->Props, pDSoundStream->cbPlayBuf,
     749                                     0 /* dwOffset */, pDSoundStream->cbPlayBuf,
    751750                                     &pv1, &pv2, &cb1, &cb2, DSBLOCK_ENTIREBUFFER);
    752751    if (SUCCEEDED(hr))
     
    16891688    {
    16901689        /* Init the stream structure and save relevant information to it. */
    1691         pDSoundStream->offCaptureBufRead    = 0;
    1692         pDSoundStream->cbPlayBuf = 0;
    1693         pDSoundStream->pDSC                = NULL;
    1694         pDSoundStream->pDSCB               = NULL;
    1695         pDSoundStream->enmRecSource        = pCfgReq->DestSource.Source;
    1696         pDSoundStream->hrLastCapture       = S_OK;
     1690        pDSoundStream->offCaptureBufRead = 0;
     1691        pDSoundStream->cbCaptureBuf      = 0;
     1692        pDSoundStream->pDSC              = NULL;
     1693        pDSoundStream->pDSCB             = NULL;
     1694        pDSoundStream->enmRecSource      = pCfgReq->DestSource.Source;
     1695        pDSoundStream->hrLastCapture     = S_OK;
    16971696
    16981697        if (pCfgAcq)
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