aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/backends/wave.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2014-04-16 06:59:44 -0700
committerChris Robinson <[email protected]>2014-04-16 06:59:44 -0700
commitb020dd13fda12ffa275f6c8165dcad481f9658d6 (patch)
tree8d9ab0e331765c305f62ab4cf609261913333b64 /Alc/backends/wave.c
parent184cf30cf70d0efcba8cfb7c27f464dbc4a3edaf (diff)
Avoid using a Sleep() wrapper
Diffstat (limited to 'Alc/backends/wave.c')
-rw-r--r--Alc/backends/wave.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/Alc/backends/wave.c b/Alc/backends/wave.c
index 3d15cab1..5f5c92c1 100644
--- a/Alc/backends/wave.c
+++ b/Alc/backends/wave.c
@@ -93,8 +93,8 @@ static int WaveProc(void *ptr)
ALuint now, start;
ALuint64 avail, done;
size_t fs;
- const ALuint restTime = (ALuint64)Device->UpdateSize * 1000 /
- Device->Frequency / 2;
+ const long restTime = (long)((ALuint64)Device->UpdateSize * 1000000000 /
+ Device->Frequency / 2);
SetThreadName(MIXER_THREAD_NAME);
@@ -116,7 +116,7 @@ static int WaveProc(void *ptr)
}
if(avail-done < Device->UpdateSize)
{
- Sleep(restTime);
+ al_nssleep(0, restTime);
continue;
}