diff --git a/src/winetricks b/src/winetricks index e7b837445..ec35d6f85 100755 --- a/src/winetricks +++ b/src/winetricks @@ -13955,6 +13955,30 @@ load_xact_x64() #---------------------------------------------------------------- +w_metadata xaudio29 dlls \ + title="MS XAudio Redistributable 2.9" \ + publisher="Microsoft" \ + year="2023" \ + media="download" \ + file1="microsoft.xaudio2.redist.1.2.11.nupkg" \ + installed_file1="${W_SYSTEM32_DLLS_WIN}/xaudio2_9.dll" + +load_xaudio29() +{ + w_download https://www.nuget.org/api/v2/package/Microsoft.XAudio2.Redist/1.2.11 4552e0b5b59de0cdbc6c217261c45f5968f7bbf1e8ab5f208e4bca6fd8fc5780 microsoft.xaudio2.redist.1.2.11.nupkg + + w_try_unzip "${W_TMP}" "${W_CACHE}/${W_PACKAGE}/${file1}" + w_try_cp_dll "${W_TMP}/build/native/release/bin/x86/xaudio2_9redist.dll" "${W_SYSTEM32_DLLS}/xaudio2_9.dll" + + if [ "${W_ARCH}" = "win64" ]; then + w_try_cp_dll "${W_TMP}/build/native/release/bin/x64/xaudio2_9redist.dll" "${W_SYSTEM64_DLLS}/xaudio2_9.dll" + fi + + w_override_dlls native,builtin xaudio2_9 +} + +#---------------------------------------------------------------- + w_metadata xinput dlls \ title="Microsoft XInput (Xbox controller support)" \ publisher="Microsoft" \