Skip to content

Commit 165e968

Browse files
committed
try to fix audio setting
1 parent a79e472 commit 165e968

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.github/workflows/cpp-macos.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
- run: git fetch --prune --unshallow --tags
1616

1717
- name: pkg
18-
run: brew install cmake p7zip gcc openssl rtmpdump && brew link --force openssl
18+
run: brew install cmake@3.31.6 p7zip gcc openssl rtmpdump && brew link --force openssl
1919

2020
- name: depot_tools
2121
run: |

CMakeLists.txt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,12 @@ if (NOT EXISTS ${WEBRTCOBJS}/${CMAKE_STATIC_LIBRARY_PREFIX}webrtc${CMAKE_STATIC_
124124
file(WRITE ${WEBRTCROOT}/src/call/rtp_config.cc "${filecontent}")
125125

126126
# sound support
127-
if (NOT DEFINED CMAKE_FIND_ROOT_PATH)
127+
if (APPLE)
128+
set (WEBRTCARGS rtc_include_internal_audio_device=true\n${WEBRTCARGS})
129+
set (WEBRTCARGS rtc_include_pulse_audio=true\n${WEBRTCARGS})
130+
elseif (WIN32)
131+
set (WEBRTCARGS rtc_include_internal_audio_device=true\n${WEBRTCARGS})
132+
elseif (NOT DEFINED CMAKE_FIND_ROOT_PATH)
128133
if (NOT PulseAudio_FOUND)
129134
set (WEBRTCARGS rtc_include_pulse_audio=false\n${WEBRTCARGS})
130135
endif()

0 commit comments

Comments
 (0)