aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/pulseaudio.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2009-12-02 08:10:45 -0800
committerChris Robinson <[email protected]>2009-12-02 08:10:45 -0800
commit4a928ea9fab189b97f0d9906c0959a3ab0423ba4 (patch)
tree81d3407438e49992ea7ed5bfa7c968c8771e35ce /Alc/pulseaudio.c
parentc1eb444a392f4dd2fecdfbec95855737719ae747 (diff)
Don't signal on synchronous changes and don't wait to accept context changes
Diffstat (limited to 'Alc/pulseaudio.c')
-rw-r--r--Alc/pulseaudio.c6
1 files changed, 0 insertions, 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);