Merge branch 'support-old-webrtc' into 'master'

echo-cancel: Support old webrtc-audio-processing library

See merge request pulseaudio/pulseaudio!836
This commit is contained in:
Alper Nebi Yasak 2025-12-30 02:39:45 +03:00
commit 3722497c22
3 changed files with 610 additions and 4 deletions

View file

@ -726,9 +726,15 @@ if get_option('daemon')
cdata.set('HAVE_SOXR', 1)
endif
webrtc_dep = dependency('webrtc-audio-processing-1', version : '>= 1.0', required : get_option('webrtc-aec'))
webrtc_dep = dependency('webrtc-audio-processing-1', version : '>= 1.0', required : false)
if webrtc_dep.found()
cdata.set('HAVE_WEBRTC', 1)
cdata.set('HAVE_WEBRTC1', 1)
else
webrtc_dep = dependency('webrtc-audio-processing', version : ['>= 0.2', '< 1.0'], required : get_option('webrtc-aec'))
if webrtc_dep.found()
cdata.set('HAVE_WEBRTC', 1)
endif
endif
systemd_dep = dependency('systemd', required : get_option('systemd'))