- Timestamp:
- Sep 6, 2017 11:14:16 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/DrvHostDSound.cpp
r68599 r68677 1512 1512 case PDMAUDIOSTREAMCMD_RESUME: 1513 1513 { 1514 DSLOG(("DSound: Playback PDMAUDIOSTREAMCMD_ENABLE\n"));1515 /* Try to start playback. If it fails, then reopen and try again. */1516 1514 hr = directSoundPlayStart(pThis, pStreamDS); 1517 1515 if (FAILED(hr)) … … 1544 1542 case PDMAUDIOSTREAMCMD_PAUSE: 1545 1543 { 1546 DSLOG(("DSound: Playback PDMAUDIOSTREAMCMD_DISABLE\n")); 1544 AssertPtr(pThis->pDS); 1545 1547 1546 hr = directSoundPlayStop(pThis, pStreamDS); 1548 1547 if (FAILED(hr)) … … 1778 1777 case PDMAUDIOSTREAMCMD_PAUSE: 1779 1778 { 1780 hr = directSoundCaptureStop(pStreamDS); 1781 if (FAILED(hr)) 1782 rc = VERR_NOT_SUPPORTED; 1779 AssertPtr(pThis->pDSC); 1780 1781 directSoundCaptureStop(pStreamDS); 1782 1783 /* Return success in any case, as stopping the capture can fail if 1784 * the capture buffer is not around anymore. 1785 * 1786 * This can happen if the host's capturing device has been changed suddenly. */ 1787 rc = VINF_SUCCESS; 1783 1788 break; 1784 1789 }
Note:
See TracChangeset
for help on using the changeset viewer.