Changeset 90778 in vbox for trunk/src/VBox/Devices/Audio
- Timestamp:
- Aug 23, 2021 8:55:48 AM (4 years ago)
- svn:sync-xref-src-repo-rev:
- 146412
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/DrvHostAudioWasApi.cpp
r89765 r90778 1522 1522 { 1523 1523 WAVEFORMATEX const * const pFormat = (WAVEFORMATEX const *)VarFormat.blob.pBlobData; 1524 AssertPtr(pFormat); 1524 AssertPtr(pFormat); /* Observed sometimes being NULL on windows 7 sp1. */ 1525 1525 1526 1526 /* … … 1540 1540 pDev->Core.fFlags = enmType == eRender ? PDMAUDIOHOSTDEV_F_DEFAULT_OUT : PDMAUDIOHOSTDEV_F_DEFAULT_IN; 1541 1541 if (enmType == eRender) 1542 pDev->Core.cMaxOutputChannels = pFormat->nChannels;1542 pDev->Core.cMaxOutputChannels = RT_VALID_PTR(pFormat) ? pFormat->nChannels : 2; 1543 1543 else 1544 pDev->Core.cMaxInputChannels = pFormat->nChannels;1544 pDev->Core.cMaxInputChannels = RT_VALID_PTR(pFormat) ? pFormat->nChannels : 1; 1545 1545 1546 1546 memcpy(pDev->wszDevId, pwszDevId, cwcDevId * sizeof(RTUTF16));
Note:
See TracChangeset
for help on using the changeset viewer.