Changeset 65566 in vbox for trunk/src/VBox/Devices
- Timestamp:
- Feb 1, 2017 2:21:22 PM (8 years ago)
- Location:
- trunk/src/VBox/Devices/Audio
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/DrvHostALSAAudio.cpp
r65565 r65566 1183 1183 } 1184 1184 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); 1186 1186 if (!cbToRead) 1187 1187 break; -
trunk/src/VBox/Devices/Audio/DrvHostDSound.cpp
r65565 r65566 747 747 DWORD cb1, cb2; 748 748 HRESULT hr = directSoundPlayLock(pThis, pDSoundStream->pDSB, &pDSoundStream->Props, 749 0 /* dwOffset */, 750 &pDSoundStream->Props, pDSoundStream->cbPlayBuf, 749 0 /* dwOffset */, pDSoundStream->cbPlayBuf, 751 750 &pv1, &pv2, &cb1, &cb2, DSBLOCK_ENTIREBUFFER); 752 751 if (SUCCEEDED(hr)) … … 1689 1688 { 1690 1689 /* Init the stream structure and save relevant information to it. */ 1691 pDSoundStream->offCaptureBufRead 1692 pDSoundStream->cb PlayBuf= 0;1693 pDSoundStream->pDSC 1694 pDSoundStream->pDSCB 1695 pDSoundStream->enmRecSource 1696 pDSoundStream->hrLastCapture 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; 1697 1696 1698 1697 if (pCfgAcq)
Note:
See TracChangeset
for help on using the changeset viewer.