summaryrefslogtreecommitdiffstats
path: root/wscript
diff options
context:
space:
mode:
authorThomas Weißschuh <thomas@t-8ch.de>2022-01-06 21:54:21 +0100
committerPhilip Langdale <github.philipl@overt.org>2022-01-17 11:43:02 -0800
commit87aba146eddd2bc3fe8819180e2814e7947ff1f2 (patch)
treef70d9220675e53e22e128127dd682baa0895771a /wscript
parent1ba0547bfbe08b6b0a84760730d4ddaeea9f1d0d (diff)
downloadmpv-87aba146eddd2bc3fe8819180e2814e7947ff1f2.tar.bz2
mpv-87aba146eddd2bc3fe8819180e2814e7947ff1f2.tar.xz
ao_pipewire: Add PipeWire audio backend
The AO provides a way for mpv to directly submit audio to the PipeWire audio server. Doing this directly instead of going through the various compatibility layers provided by PipeWire has the following advantages: * It reduces complexity of going through the compatibility layers * It allows a richer integration between mpv and PipeWire (for example for metadata) * Some users report issues with the compatibility layers that to not occur with the native AO For now the AO is ordered after all the other relevant AOs, so it will most probably not be picked up by default. This is for the following reasons: * Currently it is not possible to detect if the PipeWire daemon that mpv connects to is actually driving the system audio. (https://gitlab.freedesktop.org/pipewire/pipewire/-/issues/1835) * It gives the AO time to stabilize before it is used by everyone. Based-on-patch-by: Oschowa <oschowa@web.de> Based-on-patch-by: Andreas Kempf <aakempf@gmail.com> Helped-by: Ivan <etircopyhdot@gmail.com>
Diffstat (limited to 'wscript')
-rw-r--r--wscript4
1 files changed, 4 insertions, 0 deletions
diff --git a/wscript b/wscript
index f4ad6c6d95..4fc285be48 100644
--- a/wscript
+++ b/wscript
@@ -435,6 +435,10 @@ audio_output_features = [
'func': check_statement(['sys/soundcard.h'], 'int x = SNDCTL_DSP_SETPLAYVOL'),
'deps': 'posix && gpl',
}, {
+ 'name': '--pipewire',
+ 'desc': 'PipeWire audio output',
+ 'func': check_pkg_config('libpipewire-0.3', '>= 0.3.0')
+ }, {
'name': '--pulse',
'desc': 'PulseAudio audio output',
'func': check_pkg_config('libpulse', '>= 1.0')