aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Alc/backends/mmdevapi.c2
-rw-r--r--Alc/backends/oss.c2
-rw-r--r--Alc/backends/winmm.c2
-rw-r--r--OpenAL32/Include/alMain.h2
4 files changed, 5 insertions, 3 deletions
diff --git a/Alc/backends/mmdevapi.c b/Alc/backends/mmdevapi.c
index 2e7f4e7b..c5e5f87e 100644
--- a/Alc/backends/mmdevapi.c
+++ b/Alc/backends/mmdevapi.c
@@ -1206,7 +1206,7 @@ FORCE_ALIGN int ALCmmdevCapture_recordProc(void *arg)
return 1;
}
- althrd_setname(althrd_current(), "alsoft-record");
+ althrd_setname(althrd_current(), RECORD_THREAD_NAME);
while(!self->killNow)
{
diff --git a/Alc/backends/oss.c b/Alc/backends/oss.c
index 631a496e..e4478515 100644
--- a/Alc/backends/oss.c
+++ b/Alc/backends/oss.c
@@ -345,7 +345,7 @@ static int ALCcaptureOSS_recordProc(void *ptr)
int amt;
SetRTPriority();
- althrd_setname(althrd_current(), "alsoft-record");
+ althrd_setname(althrd_current(), RECORD_THREAD_NAME);
frameSize = FrameSizeFromDevFmt(device->FmtChans, device->FmtType);
diff --git a/Alc/backends/winmm.c b/Alc/backends/winmm.c
index fe2701b0..03805ab8 100644
--- a/Alc/backends/winmm.c
+++ b/Alc/backends/winmm.c
@@ -503,7 +503,7 @@ static int ALCwinmmCapture_captureProc(void *arg)
WAVEHDR *WaveHdr;
MSG msg;
- althrd_setname(althrd_current(), "alsoft-record");
+ althrd_setname(althrd_current(), RECORD_THREAD_NAME);
while(GetMessage(&msg, NULL, 0, 0))
{
diff --git a/OpenAL32/Include/alMain.h b/OpenAL32/Include/alMain.h
index 54bbc565..115edb03 100644
--- a/OpenAL32/Include/alMain.h
+++ b/OpenAL32/Include/alMain.h
@@ -760,6 +760,8 @@ struct ALCdevice_struct
* compatibility with pthread_setname_np limitations. */
#define MIXER_THREAD_NAME "alsoft-mixer"
+#define RECORD_THREAD_NAME "alsoft-record"
+
struct ALCcontext_struct
{