diff options
author | Chris Robinson <[email protected]> | 2014-04-16 06:59:44 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2014-04-16 06:59:44 -0700 |
commit | b020dd13fda12ffa275f6c8165dcad481f9658d6 (patch) | |
tree | 8d9ab0e331765c305f62ab4cf609261913333b64 /Alc/backends/null.c | |
parent | 184cf30cf70d0efcba8cfb7c27f464dbc4a3edaf (diff) |
Avoid using a Sleep() wrapper
Diffstat (limited to 'Alc/backends/null.c')
-rw-r--r-- | Alc/backends/null.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Alc/backends/null.c b/Alc/backends/null.c index 4a3aa2d2..26e63b2e 100644 --- a/Alc/backends/null.c +++ b/Alc/backends/null.c @@ -94,9 +94,9 @@ static int ALCnullBackend_mixerProc(void *ptr) } if(avail-done < device->UpdateSize) { - ALuint restTime = (ALuint)((device->UpdateSize - (avail-done)) * 1000 / - device->Frequency); - Sleep(restTime); + long restTime = (long)((device->UpdateSize - (avail-done)) * 1000000000 / + device->Frequency); + al_nssleep(0, restTime); continue; } |