pulse: announce "media.role=music"

This allows PulseAudio to do some advanced tweaks.
This commit is contained in:
Max Kellermann 2009-10-20 21:02:10 +02:00
parent 2e9e34aa40
commit bc629c8a3e
2 changed files with 3 additions and 0 deletions

1
NEWS
View File

@ -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

View File

@ -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);