mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-07-24 09:05:47 +00:00
Add SDL2 audio backend
This commit is contained in:
parent
5e19cefd59
commit
34848e5eda
5 changed files with 213 additions and 2 deletions
|
@ -42,6 +42,7 @@ add_library(audio_core STATIC
|
|||
voice_context.h
|
||||
|
||||
$<$<BOOL:${ENABLE_CUBEB}>:cubeb_sink.cpp cubeb_sink.h>
|
||||
$<$<BOOL:${ENABLE_SDL2}>:sdl2_sink.cpp sdl2_sink.h>
|
||||
)
|
||||
|
||||
create_target_directory_groups(audio_core)
|
||||
|
@ -71,3 +72,7 @@ if(ENABLE_CUBEB)
|
|||
target_link_libraries(audio_core PRIVATE cubeb)
|
||||
target_compile_definitions(audio_core PRIVATE -DHAVE_CUBEB=1)
|
||||
endif()
|
||||
if(ENABLE_SDL2)
|
||||
target_link_libraries(audio_core PRIVATE SDL2)
|
||||
target_compile_definitions(audio_core PRIVATE HAVE_SDL2)
|
||||
endif()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue