From bc629c8a3e5f90c827cc3ad2d896d2d0737e3d62 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 20 Oct 2009 21:02:10 +0200 Subject: [PATCH] pulse: announce "media.role=music" This allows PulseAudio to do some advanced tweaks. --- NEWS | 1 + src/output/pulse_plugin.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/NEWS b/NEWS index cf1919b2e..645e82613 100644 --- a/NEWS +++ b/NEWS @@ -29,6 +29,7 @@ ver 0.16 (20??/??/??) * output: - recorder: new output plugin for recording radio streams - openal: new output plugin + - pulse: announce "media.role=music" * mixers: - removed support for legacy mixer configuration - reimplemented software volume as mixer+filter plugin 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);