From 90ca6675c2a433a99d3cc3086cc18428b1088b10 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sat, 16 Jun 2012 22:37:45 -0700 Subject: 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. --- Alc/backends/pulseaudio.c | 2 +- alsoftrc.sample | 8 +++----- 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 -- cgit v1.2.3