contrib(win32): use WASAPI as the only PortAudio host api

The DirectSound host api implementation in PortAudio has multiple
issues:
- requires utf8 support patch
- can't enumerate the default communication devices
- reports incorrect default sample-rates for devices

The WASAPI host api implementation needs to be patched to access
the default comm devices, but functions better out-of-the-box.

Change-Id: Ie27ee3e1418dd6d734ad6ad7685f2dc44db86007
Gitlab: #463
This commit is contained in:
Andreas Traczyk
2021-03-11 13:47:10 -05:00
parent 854362a8c2
commit 29799dbadf
9 changed files with 83 additions and 883 deletions

View File

@ -283,11 +283,11 @@ def make(pkg_info, force, sdk_version, toolset, isPlugin):
if use_cmake:
cmake_defines = ""
for define in pkg_info.get('defines', []):
cmake_defines += " -D" + define + " "
cmake_defines += " -D" + define
if not pkg_up_to_date or current_version is None or force:
cmake_conf_script = "cmake -G " + getCMakeGenerator(getLatestVSVersion(
)) + cmake_defines + " -S '" + pkg_build_path + "' -B '" + pkg_build_path + "\\build'"
log.debug("Configuring with Cmake", cmake_conf_script)
log.debug("Configuring with Cmake")
result = getSHrunner().exec_batch(cmake_conf_script)
if result[0] != 0:
log.error("Error configuring with CMake")