From d305f187d5268a040aca6df62849c33b05308963 Mon Sep 17 00:00:00 2001 From: ckdo Date: Tue, 16 Jul 2019 12:55:53 +0200 Subject: [PATCH] Add the ability to specify media.role for pulse output plugin This is useful in multiple mpd instances scenario, or multiple pulse outputs defined on the same mpd instance. It is actually a more flexible way to route flows than the "sink" parameter, letting the PulseAudio routing do its job, but with the ability to isolate routing for each output. If not specified, the role remains like it was before this commit, ie "music" --- NEWS | 1 + doc/mpdconf.example | 1 + doc/plugins.rst | 2 ++ src/output/plugins/PulseOutputPlugin.cxx | 16 +++++++++++++--- 4 files changed, 17 insertions(+), 3 deletions(-) diff --git a/NEWS b/NEWS index 7a70c1bfb..677b0e133 100644 --- a/NEWS +++ b/NEWS @@ -14,6 +14,7 @@ ver 0.22 (not yet released) - volume: convert S16 to S24 to preserve quality and reduce dithering noise * output - jack: add option "auto_destination_ports" + - pulse: add option "media_role" * switch to C++17 - GCC 7 or clang 4 (or newer) recommended diff --git a/doc/mpdconf.example b/doc/mpdconf.example index 11ef55887..36a26a828 100644 --- a/doc/mpdconf.example +++ b/doc/mpdconf.example @@ -280,6 +280,7 @@ input { # name "My Pulse Output" ## server "remote_server" # optional ## sink "remote_server_sink" # optional +## media_role "media_role" #optional #} # # An example of a winmm output (Windows multimedia API). diff --git a/doc/plugins.rst b/doc/plugins.rst index 55a914011..d5815585e 100644 --- a/doc/plugins.rst +++ b/doc/plugins.rst @@ -1002,6 +1002,8 @@ The pulse plugin connects to a `PulseAudio