DirectSound: Stop logging an error when stopping.

This would result in an error being logged when a capture device is
unplugged.
This commit is contained in:
David Reid
2026-01-03 07:16:09 +10:00
parent 3b2af39864
commit e81a11e725
+1 -1
View File
@@ -26192,7 +26192,7 @@ static ma_result ma_device_stop__dsound(ma_device* pDevice)
if (pDevice->type == ma_device_type_capture || pDevice->type == ma_device_type_duplex) { if (pDevice->type == ma_device_type_capture || pDevice->type == ma_device_type_duplex) {
hr = ma_IDirectSoundCaptureBuffer_Stop(pDeviceStateDSound->pCaptureBuffer); hr = ma_IDirectSoundCaptureBuffer_Stop(pDeviceStateDSound->pCaptureBuffer);
if (FAILED(hr)) { if (FAILED(hr)) {
ma_log_post(ma_device_get_log(pDevice), MA_LOG_LEVEL_ERROR, "[DirectSound] IDirectSoundCaptureBuffer_Stop() failed."); /*ma_log_post(ma_device_get_log(pDevice), MA_LOG_LEVEL_ERROR, "[DirectSound] IDirectSoundCaptureBuffer_Stop() failed.");*/
wasSuccessful = MA_FALSE; wasSuccessful = MA_FALSE;
} }
} }