mirror of
https://github.com/mackron/miniaudio.git
synced 2026-04-21 15:56:58 +02:00
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:
+1
-1
@@ -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) {
|
||||
hr = ma_IDirectSoundCaptureBuffer_Stop(pDeviceStateDSound->pCaptureBuffer);
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user