diff options
Diffstat (limited to 'Alc/backends/wave.c')
-rw-r--r-- | Alc/backends/wave.c | 6 |
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; } |