Commit cb2e3a7c authored by David Reid's avatar David Reid

Update log message to show error code.

Public issue https://github.com/mackron/miniaudio/issues/410
parent f0e1b78b
...@@ -22085,7 +22085,7 @@ static ma_result ma_device_write__wasapi(ma_device* pDevice, const void* pFrames ...@@ -22085,7 +22085,7 @@ static ma_result ma_device_write__wasapi(ma_device* pDevice, const void* pFrames
} }
} else { } else {
/* Some error occurred. We'll need to abort. */ /* 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; break;
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment