diff options
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; } |