From cb2e3a7c5112dca3b93aaab609c92623384422f7 Mon Sep 17 00:00:00 2001 From: David Reid Date: Tue, 18 Jan 2022 17:31:07 +1000 Subject: [PATCH] Update log message to show error code. Public issue https://github.com/mackron/miniaudio/issues/410 --- miniaudio.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/miniaudio.h b/miniaudio.h index 2968b9fa..67ac4c07 100644 --- a/miniaudio.h +++ b/miniaudio.h @@ -22085,7 +22085,7 @@ static ma_result ma_device_write__wasapi(ma_device* pDevice, const void* pFrames } } else { /* Some error occurred. We'll need to abort. */ - ma_log_post(ma_device_get_log(pDevice), MA_LOG_LEVEL_ERROR, "[WASAPI] Failed to retrieve internal buffer from playback device in preparation for writing to the device."); + ma_log_postf(ma_device_get_log(pDevice), MA_LOG_LEVEL_ERROR, "[WASAPI] Failed to retrieve internal buffer from playback device in preparation for writing to the device. HRESULT = %d", (int)hr); break; } }