From 4a928ea9fab189b97f0d9906c0959a3ab0423ba4 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Wed, 2 Dec 2009 08:10:45 -0800 Subject: Don't signal on synchronous changes and don't wait to accept context changes --- Alc/pulseaudio.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/Alc/pulseaudio.c b/Alc/pulseaudio.c index 3b83d127..84df3832 100644 --- a/Alc/pulseaudio.c +++ b/Alc/pulseaudio.c @@ -232,8 +232,6 @@ static void context_state_callback(pa_context *context, void *pdata) //{{{ if(state == PA_CONTEXT_READY || !PA_CONTEXT_IS_GOOD(state)) { if(ppa_threaded_mainloop_in_thread(data->loop)) - ppa_threaded_mainloop_signal(data->loop, 1); - else ppa_threaded_mainloop_signal(data->loop, 0); } }//}}} @@ -249,8 +247,6 @@ static void stream_state_callback(pa_stream *stream, void *pdata) //{{{ { if(ppa_threaded_mainloop_in_thread(data->loop)) ppa_threaded_mainloop_signal(data->loop, 1); - else - ppa_threaded_mainloop_signal(data->loop, 0); } }//}}} @@ -396,14 +392,12 @@ static ALCboolean pulse_open(ALCdevice *device, const ALCchar *device_name) //{{ ppa_context_unref(data->context); data->context = NULL; - ppa_threaded_mainloop_accept(data->loop); ppa_threaded_mainloop_unlock(data->loop); goto out; } ppa_threaded_mainloop_wait(data->loop); } - ppa_threaded_mainloop_accept(data->loop); ppa_context_set_state_callback(data->context, context_state_callback2, device); device->szDeviceName = strdup(device_name); -- cgit v1.2.3