mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-09-20 21:13:04 +02:00
1ee4496dae
The wrapping library uses a global mainloop and context which allows operations to share the connection. The global mainloop is created and destroyed based on internal reference counting. The capture code won't spawn a new thread for each input anymore but instead just create the recording stream and rely on the threaded mainloop to execute the read callback when data is available.
26 lines
484 B
CMake
26 lines
484 B
CMake
project(linux-pulseaudio)
|
|
|
|
find_package(PulseAudio)
|
|
if(NOT PulseAudio_FOUND)
|
|
message(STATUS "PulseAudio not found, disabling PulseAudio plugin")
|
|
return()
|
|
endif()
|
|
|
|
include_directories(SYSTEM "${CMAKE_SOURCE_DIR}/libobs")
|
|
|
|
set(linux-pulseaudio_SOURCES
|
|
linux-pulseaudio.c
|
|
pulse-wrapper.c
|
|
pulse-input.c
|
|
)
|
|
|
|
add_library(linux-pulseaudio MODULE
|
|
${linux-pulseaudio_SOURCES}
|
|
)
|
|
target_link_libraries(linux-pulseaudio
|
|
libobs
|
|
${PULSEAUDIO_LIBRARY}
|
|
)
|
|
|
|
install_obs_plugin(linux-pulseaudio)
|