From e913a6d1aa49a7efd12bbd19b13529ac8e56f05f Mon Sep 17 00:00:00 2001 From: David Reid Date: Fri, 5 May 2023 09:24:46 +1000 Subject: [PATCH] Silence a warning. --- miniaudio.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/miniaudio.h b/miniaudio.h index 9dc197a1..6c457079 100644 --- a/miniaudio.h +++ b/miniaudio.h @@ -20880,6 +20880,8 @@ static HRESULT STDMETHODCALLTYPE ma_IMMNotificationClient_OnDefaultDeviceChanged /*ma_log_postf(ma_device_get_log(pThis->pDevice), MA_LOG_LEVEL_DEBUG, "IMMNotificationClient_OnDefaultDeviceChanged(dataFlow=%d, role=%d, pDefaultDeviceID=%S)\n", dataFlow, role, (pDefaultDeviceID != NULL) ? pDefaultDeviceID : L"(NULL)");*/ #endif + (void)role; + /* We only care about devices with the same data flow as the current device. */ if ((pThis->pDevice->type == ma_device_type_playback && dataFlow != ma_eRender) || (pThis->pDevice->type == ma_device_type_capture && dataFlow != ma_eCapture) ||