From e81a11e725dd5365a2491ad56125f4e74b301f24 Mon Sep 17 00:00:00 2001 From: David Reid Date: Sat, 3 Jan 2026 07:16:09 +1000 Subject: [PATCH] DirectSound: Stop logging an error when stopping. This would result in an error being logged when a capture device is unplugged. --- miniaudio.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/miniaudio.h b/miniaudio.h index 1a9d7b54..357f5657 100644 --- a/miniaudio.h +++ b/miniaudio.h @@ -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; } }