Changeset 68599 in vbox
- Timestamp:
- Sep 1, 2017 12:16:50 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/DrvHostDSound.cpp
r68597 r68599 206 206 *********************************************************************************************************************************/ 207 207 static HRESULT directSoundPlayRestore(PDRVHOSTDSOUND pThis, LPDIRECTSOUNDBUFFER8 pDSB); 208 static HRESULT directSoundCaptureStop(PDSOUNDSTREAM pStreamDS); 209 208 210 static void dsoundDeviceRemove(PDSOUNDDEV pDev); 209 211 static int dsoundDevicesEnumerate(PDRVHOSTDSOUND pThis, PPDMAUDIOBACKENDCFG pCfg); … … 1033 1035 if (pStreamDS->In.pDSCB) 1034 1036 { 1035 hr = IDirectSoundCaptureBuffer_Stop(pStreamDS->In.pDSCB);1037 hr = directSoundCaptureStop(pStreamDS); 1036 1038 if (SUCCEEDED(hr)) 1037 1039 { … … 1193 1195 1194 1196 1195 static HRESULT directSoundCaptureStop(PDRVHOSTDSOUND pThis, PDSOUNDSTREAM pStreamDS) 1196 { 1197 AssertPtrReturn(pThis, E_POINTER); 1197 static HRESULT directSoundCaptureStop(PDSOUNDSTREAM pStreamDS) 1198 { 1198 1199 AssertPtrReturn(pStreamDS, E_POINTER); 1199 1200 1200 RT_NOREF(pThis);1201 1202 1201 HRESULT hr = S_OK; 1203 1202 … … 1209 1208 1210 1209 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 1219 1218 return hr; 1220 1219 } … … 1779 1778 case PDMAUDIOSTREAMCMD_PAUSE: 1780 1779 { 1781 hr = directSoundCaptureStop(p This, pStreamDS);1780 hr = directSoundCaptureStop(pStreamDS); 1782 1781 if (FAILED(hr)) 1783 1782 rc = VERR_NOT_SUPPORTED;
Note:
See TracChangeset
for help on using the changeset viewer.