Refactor faudio submodule (#10397)
* updated bad header import * added faudio shared library option
This commit is contained in:
Vendored
+7
-2
@@ -222,11 +222,16 @@ add_subdirectory(OpenAL EXCLUDE_FROM_ALL)
|
|||||||
# FAudio
|
# FAudio
|
||||||
set(FAUDIO_TARGET 3rdparty_dummy_lib)
|
set(FAUDIO_TARGET 3rdparty_dummy_lib)
|
||||||
if(USE_FAUDIO)
|
if(USE_FAUDIO)
|
||||||
|
if (USE_SYSTEM_FAUDIO)
|
||||||
|
find_package(FAudio)
|
||||||
|
set(FAUDIO_TARGET FAudio)
|
||||||
|
else()
|
||||||
# FAudio depends on SDL2
|
# FAudio depends on SDL2
|
||||||
find_package(SDL2)
|
find_package(SDL2)
|
||||||
if (NOT SDL2_FOUND OR SDL2_VERSION VERSION_LESS 2.0.9)
|
if (NOT SDL2_FOUND OR SDL2_VERSION VERSION_LESS 2.0.9)
|
||||||
message("-- RPCS3: FAudio requires SDL 2.0.9 or newer.")
|
message(FATAL_ERROR "-- RPCS3: FAudio requires SDL 2.0.9 or newer.")
|
||||||
else()
|
endif()
|
||||||
|
|
||||||
set(BUILD_SHARED_LIBS OFF CACHE BOOL "Build shared library")
|
set(BUILD_SHARED_LIBS OFF CACHE BOOL "Build shared library")
|
||||||
add_subdirectory(FAudio EXCLUDE_FROM_ALL)
|
add_subdirectory(FAudio EXCLUDE_FROM_ALL)
|
||||||
target_compile_definitions(FAudio INTERFACE -DHAVE_FAUDIO)
|
target_compile_definitions(FAudio INTERFACE -DHAVE_FAUDIO)
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "Emu/Audio/AudioBackend.h"
|
#include "Emu/Audio/AudioBackend.h"
|
||||||
#include "3rdparty/FAudio/include/FAudio.h"
|
#include "FAudio.h"
|
||||||
|
|
||||||
class FAudioBackend : public AudioBackend
|
class FAudioBackend : public AudioBackend
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user