diff options
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) |