From 2a991a4fa04af7e4a91ed4289183a2d7601e6e8e Mon Sep 17 00:00:00 2001 From: jpark37 Date: Sat, 12 Mar 2022 20:46:13 -0800 Subject: [PATCH] win-waspai: Tighten version check for RTWQ Getting reports that it isn't working for 1607 and below. If they continue, we should probably just pull the RTWQ path. --- plugins/win-wasapi/win-wasapi.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/plugins/win-wasapi/win-wasapi.cpp b/plugins/win-wasapi/win-wasapi.cpp index 718a52c97..46b7d1939 100644 --- a/plugins/win-wasapi/win-wasapi.cpp +++ b/plugins/win-wasapi/win-wasapi.cpp @@ -328,7 +328,14 @@ WASAPISource::WASAPISource(obs_data_t *settings, obs_source_t *source_, // while RTWQ was introduced in Win 8.1, it silently fails // to capture Desktop Audio for some reason. Disable for now. - if (get_win_ver_int() >= _WIN32_WINNT_WIN10) + struct win_version_info win1703 = {}; + win1703.major = 10; + win1703.minor = 0; + win1703.build = 15063; + win1703.revis = 0; + struct win_version_info ver; + get_win_ver(&ver); + if (win_version_compare(&ver, &win1703) >= 0) rtwq_supported = rtwq_module != NULL; if (rtwq_supported) {