From 2ba2da467cc166979a32f40497f54488d8f70726 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Tue, 6 Mar 2012 12:01:15 -0800 Subject: [PATCH] Add a comment explaining the pulseaudio prop_filter --- Alc/backends/pulseaudio.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Alc/backends/pulseaudio.c b/Alc/backends/pulseaudio.c index 61c7f4af..156f8ffd 100644 --- a/Alc/backends/pulseaudio.c +++ b/Alc/backends/pulseaudio.c @@ -1388,6 +1388,10 @@ ALCboolean alc_pulse_init(BackendFuncs *func_list) *func_list = pulse_funcs; ret = ALC_TRUE; + /* Some libraries (Phonon, Qt) set some pulseaudio properties + * through environment variables, which causes all streams in + * the process to inherit them. This attempts to filter those + * properties out by setting them to 0-length data. */ prop_filter = pa_proplist_new(); pa_proplist_set(prop_filter, PA_PROP_MEDIA_ROLE, NULL, 0); pa_proplist_set(prop_filter, "phonon.streamid", NULL, 0); -- 2.11.4.GIT