[obs] audio: capture guest playback

Subscribe the OBS source as a playback-only LGMP audio client. Decode
the advertised formats and channel maps, then resample into the OBS
clock domain without participating in driver clock feedback.

Keep queue and resampler storage fixed in the packet path.
This commit is contained in:
Geoffrey McRae
2026-09-05 21:39:10 +10:00
parent 36e170d93a
commit 17e416c3f2
4 changed files with 2432 additions and 1 deletions

View File

@@ -8,6 +8,8 @@ include(CheckSubmodule)
include(GNUInstallDirs)
include(CheckCCompilerFlag)
include(FeatureSummary)
find_package(PkgConfig REQUIRED)
pkg_check_modules(SAMPLERATE REQUIRED IMPORTED_TARGET samplerate)
set(OPTIMIZE_FOR_NATIVE_DEFAULT ON)
include(OptimizeForNative) # option(OPTIMIZE_FOR_NATIVE)
@@ -104,6 +106,7 @@ link_libraries(
set(SOURCES
${CMAKE_BINARY_DIR}/version.c
audio.c
frame_scheduler.c
main.c
lg.c
@@ -120,6 +123,7 @@ target_link_libraries(looking-glass-obs
${EXE_FLAGS}
lg_common
lgmp
PkgConfig::SAMPLERATE
)
install(TARGETS looking-glass-obs