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

Refactor faudio submodule (#10397)

* updated bad header import
* added faudio shared library option
This commit is contained in:
polar 2021-07-08 20:31:45 +01:00 committed by GitHub
parent 770a607ba5
commit 285b9dad83
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 5 deletions

View File

@ -222,11 +222,16 @@ add_subdirectory(OpenAL EXCLUDE_FROM_ALL)
# FAudio
set(FAUDIO_TARGET 3rdparty_dummy_lib)
if(USE_FAUDIO)
if (USE_SYSTEM_FAUDIO)
find_package(FAudio)
set(FAUDIO_TARGET FAudio)
else()
# FAudio depends on SDL2
find_package(SDL2)
if (NOT SDL2_FOUND OR SDL2_VERSION VERSION_LESS 2.0.9)
message("-- RPCS3: FAudio requires SDL 2.0.9 or newer.")
else()
message(FATAL_ERROR "-- RPCS3: FAudio requires SDL 2.0.9 or newer.")
endif()
set(BUILD_SHARED_LIBS OFF CACHE BOOL "Build shared library")
add_subdirectory(FAudio EXCLUDE_FROM_ALL)
target_compile_definitions(FAudio INTERFACE -DHAVE_FAUDIO)

View File

@ -5,7 +5,7 @@
#endif
#include "Emu/Audio/AudioBackend.h"
#include "3rdparty/FAudio/include/FAudio.h"
#include "FAudio.h"
class FAudioBackend : public AudioBackend
{