aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2012-06-16 22:37:45 -0700
committerChris Robinson <[email protected]>2012-06-16 22:37:45 -0700
commit90ca6675c2a433a99d3cc3086cc18428b1088b10 (patch)
treeac7b81908328a1d44406c03584dcde5b6b014410
parent0db9730a502eb38f6b7a6c90dd89f38f73f18880 (diff)
Allow PulseAudio to spawn a server by default
Since only one backend is used at a time now, the issues with device ownership aren't really prevelant anymore. An application that tries to open all enumerated devices won't run into the problem of spawning a server and end up preventing other backend devices from working.
-rw-r--r--Alc/backends/pulseaudio.c2
-rw-r--r--alsoftrc.sample8
2 files changed, 4 insertions, 6 deletions
diff --git a/Alc/backends/pulseaudio.c b/Alc/backends/pulseaudio.c
index 3016283d..516fe932 100644
--- a/Alc/backends/pulseaudio.c
+++ b/Alc/backends/pulseaudio.c
@@ -1398,7 +1398,7 @@ ALCboolean alc_pulse_init(BackendFuncs *func_list)
pa_threaded_mainloop *loop;
pulse_ctx_flags = 0;
- if(!GetConfigValueBool("pulse", "spawn-server", 0))
+ if(!GetConfigValueBool("pulse", "spawn-server", 1))
pulse_ctx_flags |= PA_CONTEXT_NOAUTOSPAWN;
if((loop=pa_threaded_mainloop_new()) &&
diff --git a/alsoftrc.sample b/alsoftrc.sample
index 8f1a41dd..bbb9815e 100644
--- a/alsoftrc.sample
+++ b/alsoftrc.sample
@@ -285,11 +285,9 @@
## spawn-server:
# Attempts to spawn a PulseAudio server when requesting to open a PulseAudio
-# device. Note that some apps may open and probe all enumerated devices on
-# startup, causing a server to spawn even if a PulseAudio device is not
-# actually selected. Setting autospawn to false in Pulse's client.conf will
-# still prevent autospawning even if this is set to true.
-#spawn-server = false
+# device. Setting autospawn to false in PulseAudio's client.conf will still
+# prevent autospawning even if this is set to true.
+#spawn-server = true
## allow-moves:
# Allows PulseAudio to move active streams to different devices. Note that the