VirtualBox

Changeset 68677 in vbox for trunk


Ignore:
Timestamp:
Sep 6, 2017 11:14:16 AM (7 years ago)
Author:
vboxsync
Message:

Audio/DrvHostDSound.cpp: Always return success in dsoundControlStreamIn(), logging tweaks.

File:
1 edited

Legend:

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

    r68599 r68677  
    15121512        case PDMAUDIOSTREAMCMD_RESUME:
    15131513        {
    1514             DSLOG(("DSound: Playback PDMAUDIOSTREAMCMD_ENABLE\n"));
    1515             /* Try to start playback. If it fails, then reopen and try again. */
    15161514            hr = directSoundPlayStart(pThis, pStreamDS);
    15171515            if (FAILED(hr))
     
    15441542        case PDMAUDIOSTREAMCMD_PAUSE:
    15451543        {
    1546             DSLOG(("DSound: Playback PDMAUDIOSTREAMCMD_DISABLE\n"));
     1544            AssertPtr(pThis->pDS);
     1545
    15471546            hr = directSoundPlayStop(pThis, pStreamDS);
    15481547            if (FAILED(hr))
     
    17781777        case PDMAUDIOSTREAMCMD_PAUSE:
    17791778        {
    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;
    17831788            break;
    17841789        }
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