diff options
author | Chris Robinson <[email protected]> | 2013-10-27 08:14:13 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2013-10-27 08:14:13 -0700 |
commit | 8ceb800defbf13354866cd7c6a4b676cf54aad5d (patch) | |
tree | e46b00b1fe38403173b28566cbcb2d421a4d9ca9 /Alc/backends/mmdevapi.c | |
parent | b9e30f76041a029e9d4cd58f6c87086c0b527d6d (diff) |
Rework threading functions
Diffstat (limited to 'Alc/backends/mmdevapi.c')
-rw-r--r-- | Alc/backends/mmdevapi.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Alc/backends/mmdevapi.c b/Alc/backends/mmdevapi.c index e6447bef..fb70d609 100644 --- a/Alc/backends/mmdevapi.c +++ b/Alc/backends/mmdevapi.c @@ -40,6 +40,7 @@ #include "alMain.h" #include "alu.h" +#include "threads.h" DEFINE_GUID(KSDATAFORMAT_SUBTYPE_PCM, 0x00000001, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71); @@ -69,7 +70,7 @@ typedef struct { volatile UINT32 Padding; volatile int killNow; - ALvoid *thread; + althread_t thread; } MMDevApiData; @@ -677,8 +678,7 @@ static DWORD CALLBACK MMDevApiMsgProc(void *ptr) if(SUCCEEDED(hr)) { data->render = ptr; - data->thread = StartThread(MMDevApiProc, device); - if(!data->thread) + if(!StartThread(&data->thread, MMDevApiProc, device)) { if(data->render) IAudioRenderClient_Release(data->render); |