pipewire-pulse: add module-switch-on-connect

module-switch-on-connect sets the configured default sink/source
whenever suitable new sink/sources appear.

This should give the same behavior as Pulseaudio's module.

This module exists mainly to provide a workaround e.g. for desktop
environments such as XFCE, whose mixer applications try to manage the
default devices assuming fully PA-like behavior, breaking default
pipewire output switching.
This commit is contained in:
Pauli Virtanen 2021-07-23 18:50:33 +03:00
parent 606108f409
commit 777bc89d02
4 changed files with 330 additions and 0 deletions

View file

@ -194,6 +194,7 @@ pipewire_module_protocol_pulse_sources = [
'module-protocol-pulse/modules/module-remap-sink.c',
'module-protocol-pulse/modules/module-remap-source.c',
'module-protocol-pulse/modules/module-simple-protocol-tcp.c',
'module-protocol-pulse/modules/module-switch-on-connect.c',
'module-protocol-pulse/modules/module-tunnel-sink.c',
'module-protocol-pulse/modules/module-tunnel-source.c',
'module-protocol-pulse/modules/module-zeroconf-discover.c',