mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-11-22 02:32:36 +01:00
xaudio2: use system library instead of xaudio2redist
This commit is contained in:
parent
83256cdacb
commit
3e83729cb2
1276
3rdparty/XAudio2Redist/include/xaudio2redist.h
vendored
1276
3rdparty/XAudio2Redist/include/xaudio2redist.h
vendored
File diff suppressed because it is too large
Load Diff
BIN
3rdparty/XAudio2Redist/libs/xaudio2_9redist.lib
vendored
BIN
3rdparty/XAudio2Redist/libs/xaudio2_9redist.lib
vendored
Binary file not shown.
Binary file not shown.
@ -12,10 +12,6 @@
|
||||
#include <Windows.h>
|
||||
#include <system_error>
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#pragma comment(lib, "xaudio2_9redist.lib")
|
||||
#endif
|
||||
|
||||
#ifndef XAUDIO2_USE_DEFAULT_PROCESSOR
|
||||
#define XAUDIO2_USE_DEFAULT_PROCESSOR XAUDIO2_DEFAULT_PROCESSOR
|
||||
#endif
|
||||
|
@ -8,12 +8,8 @@
|
||||
#include "Utilities/mutex.h"
|
||||
#include "Emu/Audio/AudioBackend.h"
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#include <xaudio2redist.h>
|
||||
#else
|
||||
#include <initguid.h>
|
||||
#include <xaudio2.h>
|
||||
#endif
|
||||
#include <wrl/client.h>
|
||||
#include <MMDeviceAPI.h>
|
||||
|
||||
|
@ -141,12 +141,8 @@ if(USE_FAUDIO)
|
||||
endif()
|
||||
|
||||
if(WIN32)
|
||||
target_include_directories(rpcs3_emu PUBLIC "${PROJECT_SOURCE_DIR}/3rdparty/XAudio2Redist/include")
|
||||
if(MSVC)
|
||||
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)
|
||||
if(NOT MSVC)
|
||||
target_link_libraries(rpcs3_emu PRIVATE xaudio2_9)
|
||||
endif()
|
||||
target_sources(rpcs3_emu PRIVATE
|
||||
Audio/XAudio2/XAudio2Backend.cpp
|
||||
|
@ -42,7 +42,7 @@
|
||||
<PropertyGroup Label="UserMacros" />
|
||||
<ItemDefinitionGroup>
|
||||
<ClCompile>
|
||||
<AdditionalIncludeDirectories>..\3rdparty\XAudio2Redist\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<AdditionalIncludeDirectories>%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<Optimization Condition="'$(Configuration)|$(Platform)'=='Release|x64'">MaxSpeed</Optimization>
|
||||
</ClCompile>
|
||||
</ItemDefinitionGroup>
|
||||
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user