VirtualBox

Changeset 68599 in vbox


Ignore:
Timestamp:
Sep 1, 2017 12:16:50 PM (7 years ago)
Author:
vboxsync
Message:

Audio/DrvHostDSound.cpp: Integrated r117818 from 5.1 into trunk.

File:
1 edited

Legend:

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

    r68597 r68599  
    206206*********************************************************************************************************************************/
    207207static HRESULT  directSoundPlayRestore(PDRVHOSTDSOUND pThis, LPDIRECTSOUNDBUFFER8 pDSB);
     208static HRESULT  directSoundCaptureStop(PDSOUNDSTREAM pStreamDS);
     209
    208210static void     dsoundDeviceRemove(PDSOUNDDEV pDev);
    209211static int      dsoundDevicesEnumerate(PDRVHOSTDSOUND pThis, PPDMAUDIOBACKENDCFG pCfg);
     
    10331035    if (pStreamDS->In.pDSCB)
    10341036    {
    1035         hr = IDirectSoundCaptureBuffer_Stop(pStreamDS->In.pDSCB);
     1037        hr = directSoundCaptureStop(pStreamDS);
    10361038        if (SUCCEEDED(hr))
    10371039        {
     
    11931195
    11941196
    1195 static HRESULT directSoundCaptureStop(PDRVHOSTDSOUND pThis, PDSOUNDSTREAM pStreamDS)
    1196 {
    1197     AssertPtrReturn(pThis,     E_POINTER);
     1197static HRESULT directSoundCaptureStop(PDSOUNDSTREAM pStreamDS)
     1198{
    11981199    AssertPtrReturn(pStreamDS, E_POINTER);
    11991200
    1200     RT_NOREF(pThis);
    1201 
    12021201    HRESULT hr = S_OK;
    12031202
     
    12091208
    12101209            hr = IDirectSoundCaptureBuffer_Stop(pStreamDS->In.pDSCB);
    1211             if (FAILED(hr))
    1212                 DSLOGREL(("DSound: Stopping capture buffer failed with %Rhrc\n", hr));
    1213 
    1214             pStreamDS->fEnabled = false;
    1215         }
    1216     }
    1217 
    1218     LogFlowFunc(("Returning %Rhrc\n", hr));
     1210            if (SUCCEEDED(hr))
     1211                pStreamDS->fEnabled = false;
     1212        }
     1213    }
     1214
     1215    if (FAILED(hr))
     1216        DSLOGREL(("DSound: Stopping capture buffer failed with %Rhrc\n", hr));
     1217
    12191218    return hr;
    12201219}
     
    17791778        case PDMAUDIOSTREAMCMD_PAUSE:
    17801779        {
    1781             hr = directSoundCaptureStop(pThis, pStreamDS);
     1780            hr = directSoundCaptureStop(pStreamDS);
    17821781            if (FAILED(hr))
    17831782                rc = VERR_NOT_SUPPORTED;
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