diff options
author | Chris Robinson <[email protected]> | 2009-05-06 00:19:35 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2009-05-06 00:19:35 -0700 |
commit | 0ce29863e3ed0c7f713c02a21c8c4550208cc570 (patch) | |
tree | 7b8d1e10673d91df87795358b8cbf18a2d51a3f6 /Alc/pulseaudio.c | |
parent | 7a7a4844f441a2d269cffdadfd553655a8d3484e (diff) |
Prevent spawning PulseAudio if it's not already running
Diffstat (limited to 'Alc/pulseaudio.c')
-rw-r--r-- | Alc/pulseaudio.c | 2 |
1 files changed, 1 insertions, 1 deletions
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))); |