Commit bc629c8a authored by Max Kellermann's avatar Max Kellermann

pulse: announce "media.role=music"

This allows PulseAudio to do some advanced tweaks.
parent 2e9e34aa
...@@ -29,6 +29,7 @@ ver 0.16 (20??/??/??) ...@@ -29,6 +29,7 @@ ver 0.16 (20??/??/??)
* output: * output:
- recorder: new output plugin for recording radio streams - recorder: new output plugin for recording radio streams
- openal: new output plugin - openal: new output plugin
- pulse: announce "media.role=music"
* mixers: * mixers:
- removed support for legacy mixer configuration - removed support for legacy mixer configuration
- reimplemented software volume as mixer+filter plugin - reimplemented software volume as mixer+filter plugin
......
...@@ -66,6 +66,8 @@ pulse_init(G_GNUC_UNUSED const struct audio_format *audio_format, ...@@ -66,6 +66,8 @@ pulse_init(G_GNUC_UNUSED const struct audio_format *audio_format,
{ {
struct pulse_data *pd; struct pulse_data *pd;
g_setenv("PULSE_PROP_media.role", "music", true);
pd = pulse_new_data(); pd = pulse_new_data();
pd->name = config_get_block_string(param, "name", "mpd_pulse"); pd->name = config_get_block_string(param, "name", "mpd_pulse");
pd->server = config_get_block_string(param, "server", NULL); pd->server = config_get_block_string(param, "server", NULL);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment