aboutsummaryrefslogtreecommitdiffstats
path: root/src/output
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-10-20 21:02:10 +0200
committerMax Kellermann <max@duempel.org>2009-10-20 21:02:10 +0200
commitbc629c8a3e5f90c827cc3ad2d896d2d0737e3d62 (patch)
treeda94c90cf7a30d84fc2f8196374c19ce1e32e37b /src/output
parent2e9e34aa40bc9e6f221ef74a2f0cc87e9de4b793 (diff)
downloadmpd-bc629c8a3e5f90c827cc3ad2d896d2d0737e3d62.tar.gz
mpd-bc629c8a3e5f90c827cc3ad2d896d2d0737e3d62.tar.xz
mpd-bc629c8a3e5f90c827cc3ad2d896d2d0737e3d62.zip
pulse: announce "media.role=music"
This allows PulseAudio to do some advanced tweaks.
Diffstat (limited to 'src/output')
-rw-r--r--src/output/pulse_plugin.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/output/pulse_plugin.c b/src/output/pulse_plugin.c
index ffc7abc8b..e4780fd45 100644
--- a/src/output/pulse_plugin.c
+++ b/src/output/pulse_plugin.c
@@ -66,6 +66,8 @@ pulse_init(G_GNUC_UNUSED const struct audio_format *audio_format,
{
struct pulse_data *pd;
+ g_setenv("PULSE_PROP_media.role", "music", true);
+
pd = pulse_new_data();
pd->name = config_get_block_string(param, "name", "mpd_pulse");
pd->server = config_get_block_string(param, "server", NULL);