mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-18 07:47:17 +00:00
wasapi2: Allows process loopback capture on Windows 10
As per MS documentation[1], it requires Windows 10 Build 20348 but it seems to be supported by old versions too [1] https://learn.microsoft.com/en-us/windows/win32/api/audioclientactivationparams/ ns-audioclientactivationparams-audioclient_process_loopback_params Fixes: https://gitlab.freedesktop.org/gstreamer/gstreamer/-/issues/2524 Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/4517>
This commit is contained in:
parent
9e2eeab1c6
commit
b40bedb597
1 changed files with 3 additions and 1 deletions
|
@ -526,8 +526,10 @@ gst_wasapi2_can_process_loopback (void)
|
|||
* "Windows 11", since build number of "Windows 10 version 21H2" is
|
||||
* still 19044.XXX
|
||||
*/
|
||||
|
||||
/* But other software enables this for build number 19041 or higher... */
|
||||
if (osverinfo.dwMajorVersion > 10 ||
|
||||
(osverinfo.dwMajorVersion == 10 && osverinfo.dwBuildNumber >= 20348))
|
||||
(osverinfo.dwMajorVersion == 10 && osverinfo.dwBuildNumber >= 19041))
|
||||
ret = TRUE;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue