diff options
author | Thomas Orgis | 2022-06-29 15:03:03 +0200 |
---|---|---|
committer | Thomas Orgis | 2022-06-30 19:25:30 +0200 |
commit | fea699be7dde171a9a397fdf65d8d9acc0c1fadd (patch) | |
tree | 0a0ba10fe9120607725e9e3a63b5efc63ab4f0f3 /audio-drivers/pulseaudio/DEPENDS | |
parent | 5193a5f68f34538c265923a15d96d72d61f99336 (diff) |
pulseaudio: ensure some audio processor
This could be nicer. But one of the two is required.
Diffstat (limited to 'audio-drivers/pulseaudio/DEPENDS')
-rwxr-xr-x | audio-drivers/pulseaudio/DEPENDS | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/audio-drivers/pulseaudio/DEPENDS b/audio-drivers/pulseaudio/DEPENDS index 4a11637a21..3b101bd63d 100755 --- a/audio-drivers/pulseaudio/DEPENDS +++ b/audio-drivers/pulseaudio/DEPENDS @@ -132,10 +132,17 @@ optional_depends systemd \ "systemd=disabled" \ "for systemd support" && -optional_depends webrtc-audio-processing \ - "webrtc-aec=enabled" \ - "webrtc-aec=disabled" \ - "for WebRTC-based echo canceller" && +# not optional, build barks out without +if ! list_find "$PULSEAUDIO_OPTS" adrian-aec=true; then + message "${MESSAGE_COLOR}Some processor is required, forcing the external one.${DEFAULT_COLOR}" && + depends webrtc-audio-processing \ + "webrtc-aec=enabled" +else + optional_depends webrtc-audio-processing \ + "webrtc-aec=enabled" \ + "webrtc-aec=disabled" \ + "for WebRTC-based echo canceller" +fi && if is_depends_enabled ${SPELL} webrtc-audio-processing; then depends -sub CXX gcc |