Skip to content

Commit 21c5337

Browse files
Linux: add system audio capture for desktop sharing
1 parent 553102f commit 21c5337

13 files changed

Lines changed: 773 additions & 19 deletions

CMakeLists.txt

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ PRIVATE
2222
webrtc/webrtc_device_resolver.h
2323
webrtc/webrtc_environment.cpp
2424
webrtc/webrtc_environment.h
25+
webrtc/webrtc_system_audio_capture.cpp
26+
webrtc/webrtc_system_audio_capture.h
2527
webrtc/webrtc_video_track.cpp
2628
webrtc/webrtc_video_track.h
2729

@@ -34,6 +36,12 @@ PRIVATE
3436

3537
webrtc/platform/linux/webrtc_environment_linux.cpp
3638
webrtc/platform/linux/webrtc_environment_linux.h
39+
webrtc/platform/linux/webrtc_loopback_adm_linux.cpp
40+
webrtc/platform/linux/webrtc_loopback_adm_linux.h
41+
webrtc/platform/linux/webrtc_loopback_capture_linux.cpp
42+
webrtc/platform/linux/webrtc_loopback_capture_linux.h
43+
webrtc/platform/linux/webrtc_system_audio_capture_linux.cpp
44+
webrtc/platform/linux/webrtc_system_audio_capture_linux.h
3745
webrtc/platform/mac/webrtc_environment_mac.h
3846
webrtc/platform/mac/webrtc_environment_mac.mm
3947
webrtc/platform/win/webrtc_environment_win.cpp
@@ -55,6 +63,11 @@ elseif (APPLE)
5563
PRIVATE
5664
WEBRTC_MAC
5765
)
66+
elseif (LINUX)
67+
target_compile_definitions(lib_webrtc
68+
PRIVATE
69+
WEBRTC_LINUX
70+
)
5871
endif()
5972

6073
target_include_directories(lib_webrtc

0 commit comments

Comments
 (0)