aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/backends
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2012-03-06 12:01:15 -0800
committerChris Robinson <[email protected]>2012-03-06 12:01:15 -0800
commit2ba2da467cc166979a32f40497f54488d8f70726 (patch)
tree7517326fc4416bdb6ac49e4726c93597b7367bd3 /Alc/backends
parentf2b64fd111d356f8b07636c09705422636bd57ec (diff)
Add a comment explaining the pulseaudio prop_filter
Diffstat (limited to 'Alc/backends')
-rw-r--r--Alc/backends/pulseaudio.c4
1 files changed, 4 insertions, 0 deletions
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);