diff options
author | Chris Robinson <[email protected]> | 2013-10-27 07:00:44 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2013-10-27 07:00:44 -0700 |
commit | f93bfab82435b26fd03fe9dd0436f166758810d4 (patch) | |
tree | aa52911dc40edfe86d739e82423c8f5d4731c461 /Alc/backends/null.c | |
parent | ff5277f4d7057f481a820cf64e2c2db4687bfd5f (diff) |
Set a name for the mixer and recording threads
Diffstat (limited to 'Alc/backends/null.c')
-rw-r--r-- | Alc/backends/null.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Alc/backends/null.c b/Alc/backends/null.c index d001cb41..73e3e8cb 100644 --- a/Alc/backends/null.c +++ b/Alc/backends/null.c @@ -44,6 +44,9 @@ static ALuint NullProc(ALvoid *ptr) ALuint now, start; ALuint64 avail, done; + SetRTPriority(); + SetThreadName(MIXER_THREAD_NAME); + done = 0; start = timeGetTime(); while(!data->killNow && Device->Connected) @@ -55,7 +58,7 @@ static ALuint NullProc(ALvoid *ptr) { /* Timer wrapped (50 days???). Add the remainder of the cycle to * the available count and reset the number of samples done */ - avail += ((ALuint64)1<<32)*Device->Frequency/1000 - done; + avail += (U64(1)<<32)*Device->Frequency/1000 - done; done = 0; } if(avail-done < Device->UpdateSize) |