mirror of
https://github.com/moonlight-stream/moonlight-embedded.git
synced 2026-12-01 18:24:24 +00:00
feat: add oss audio callback for FreeBSD
OSS is the native sound system of the FreeBSD.It will be used on the x11_vaapi platform.It was added to reduce moonlight's dependency on FreeBSD.
This commit is contained in:
1 parent
3b72f5195b
commit
3840b1409e
4 files changed
+118
No files matched your search
@@ -87,6 +87,13 @@ add_executable(moonlight ${SRC_LIST})
|
||||
target_link_libraries(moonlight m)
|
||||
target_link_libraries(moonlight gamestream)
|
||||
|
||||
if (CMAKE_SYSTEM_NAME MATCHES "FreeBSD")
|
||||
set(ALSA_FOUND FALSE)
|
||||
set(PULSE_FOUND FALSE)
|
||||
set(CEC_FOUND FALSE)
|
||||
target_sources(moonlight PRIVATE ./src/audio/oss.c)
|
||||
endif()
|
||||
|
||||
if (CEC_FOUND)
|
||||
list(APPEND MOONLIGHT_DEFINITIONS HAVE_LIBCEC)
|
||||
list(APPEND MOONLIGHT_OPTIONS CEC)
|
||||
|
||||
Reference in new issue
Block a user