1
0
mirror of https://github.com/RPCS3/rpcs3.git synced 2024-11-22 10:42:36 +01:00

xaudio2: use system library instead of xaudio2redist

This commit is contained in:
oltolm 2023-08-16 23:33:04 +02:00 committed by Elad.Ash
parent 83256cdacb
commit 3e83729cb2
8 changed files with 176 additions and 1466 deletions

File diff suppressed because it is too large Load Diff

Binary file not shown.

Binary file not shown.

View File

@ -12,10 +12,6 @@
#include <Windows.h> #include <Windows.h>
#include <system_error> #include <system_error>
#ifdef _MSC_VER
#pragma comment(lib, "xaudio2_9redist.lib")
#endif
#ifndef XAUDIO2_USE_DEFAULT_PROCESSOR #ifndef XAUDIO2_USE_DEFAULT_PROCESSOR
#define XAUDIO2_USE_DEFAULT_PROCESSOR XAUDIO2_DEFAULT_PROCESSOR #define XAUDIO2_USE_DEFAULT_PROCESSOR XAUDIO2_DEFAULT_PROCESSOR
#endif #endif

View File

@ -8,12 +8,8 @@
#include "Utilities/mutex.h" #include "Utilities/mutex.h"
#include "Emu/Audio/AudioBackend.h" #include "Emu/Audio/AudioBackend.h"
#ifdef _MSC_VER
#include <xaudio2redist.h>
#else
#include <initguid.h> #include <initguid.h>
#include <xaudio2.h> #include <xaudio2.h>
#endif
#include <wrl/client.h> #include <wrl/client.h>
#include <MMDeviceAPI.h> #include <MMDeviceAPI.h>

View File

@ -141,12 +141,8 @@ if(USE_FAUDIO)
endif() endif()
if(WIN32) if(WIN32)
target_include_directories(rpcs3_emu PUBLIC "${PROJECT_SOURCE_DIR}/3rdparty/XAudio2Redist/include") if(NOT MSVC)
if(MSVC) target_link_libraries(rpcs3_emu PRIVATE xaudio2_9)
target_link_libraries(rpcs3_emu PRIVATE "${PROJECT_SOURCE_DIR}/3rdparty/XAudio2Redist/libs/xaudio2_9redist.lib")
target_link_options(rpcs3_emu PRIVATE /DELAYLOAD:xaudio2_9redist.dll)
else()
target_link_libraries(rpcs3_emu PRIVATE xaudio2_8)
endif() endif()
target_sources(rpcs3_emu PRIVATE target_sources(rpcs3_emu PRIVATE
Audio/XAudio2/XAudio2Backend.cpp Audio/XAudio2/XAudio2Backend.cpp

View File

@ -42,7 +42,7 @@
<PropertyGroup Label="UserMacros" /> <PropertyGroup Label="UserMacros" />
<ItemDefinitionGroup> <ItemDefinitionGroup>
<ClCompile> <ClCompile>
<AdditionalIncludeDirectories>..\3rdparty\XAudio2Redist\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> <AdditionalIncludeDirectories>%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<Optimization Condition="'$(Configuration)|$(Platform)'=='Release|x64'">MaxSpeed</Optimization> <Optimization Condition="'$(Configuration)|$(Platform)'=='Release|x64'">MaxSpeed</Optimization>
</ClCompile> </ClCompile>
</ItemDefinitionGroup> </ItemDefinitionGroup>

File diff suppressed because it is too large Load Diff