From 0b98fe1a6bcef64f94fb52399710770a4f2fed17 Mon Sep 17 00:00:00 2001 From: David Reid Date: Mon, 23 Nov 2020 17:23:53 +1000 Subject: [PATCH] WASAPI: Fix a bug with exclusive mode. --- miniaudio.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/miniaudio.h b/miniaudio.h index 34a8385d..c8ded793 100644 --- a/miniaudio.h +++ b/miniaudio.h @@ -13802,7 +13802,7 @@ static ma_result ma_device_init_internal__wasapi(ma_context* pContext, ma_device in this case so that the caller can detect it and fall back to shared mode if desired. We should never get here if shared mode was requested, but just for completeness we'll check for it and return MA_FORMAT_NOT_SUPPORTED. */ - if (shareMode == ma_share_mode_exclusive) { + if (shareMode == MA_AUDCLNT_SHAREMODE_EXCLUSIVE) { result = MA_SHARE_MODE_NOT_SUPPORTED; } else { result = MA_FORMAT_NOT_SUPPORTED;