aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/backends/pulseaudio.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2013-10-27 08:14:13 -0700
committerChris Robinson <[email protected]>2013-10-27 08:14:13 -0700
commit8ceb800defbf13354866cd7c6a4b676cf54aad5d (patch)
treee46b00b1fe38403173b28566cbcb2d421a4d9ca9 /Alc/backends/pulseaudio.c
parentb9e30f76041a029e9d4cd58f6c87086c0b527d6d (diff)
Rework threading functions
Diffstat (limited to 'Alc/backends/pulseaudio.c')
-rw-r--r--Alc/backends/pulseaudio.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/Alc/backends/pulseaudio.c b/Alc/backends/pulseaudio.c
index 5b6e0fad..4dc016a1 100644
--- a/Alc/backends/pulseaudio.c
+++ b/Alc/backends/pulseaudio.c
@@ -25,6 +25,7 @@
#include "alMain.h"
#include "alu.h"
+#include "threads.h"
#include <pulse/pulseaudio.h>
@@ -205,11 +206,11 @@ typedef struct {
pa_threaded_mainloop *loop;
- ALvoid *thread;
- volatile ALboolean killNow;
-
pa_stream *stream;
pa_context *context;
+
+ volatile ALboolean killNow;
+ althread_t thread;
} pulse_data;
typedef struct {
@@ -1151,8 +1152,7 @@ static ALCboolean pulse_start_playback(ALCdevice *device)
{
pulse_data *data = device->ExtraData;
- data->thread = StartThread(PulseProc, device);
- if(!data->thread)
+ if(!StartThread(&data->thread, PulseProc, device))
return ALC_FALSE;
return ALC_TRUE;