From 0ce29863e3ed0c7f713c02a21c8c4550208cc570 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Wed, 6 May 2009 00:19:35 -0700 Subject: Prevent spawning PulseAudio if it's not already running --- Alc/pulseaudio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Alc/pulseaudio.c') diff --git a/Alc/pulseaudio.c b/Alc/pulseaudio.c index 85a82762..6ba0255a 100644 --- a/Alc/pulseaudio.c +++ b/Alc/pulseaudio.c @@ -250,7 +250,7 @@ static ALCboolean pulse_open(ALCdevice *device, ALCchar *device_name, ALCenum fo pa_context_set_state_callback(data->context, context_state_callback, data); - if(pa_context_connect(data->context, NULL, 0, NULL) < 0) + if(pa_context_connect(data->context, NULL, PA_CONTEXT_NOAUTOSPAWN, NULL) < 0) { AL_PRINT("Context did not connect: %s\n", pa_strerror(pa_context_errno(data->context))); -- cgit v1.2.3