diff options
-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 5ef363d3..ad187896 100644 --- a/Alc/backends/wave.c +++ b/Alc/backends/wave.c @@ -101,9 +101,9 @@ static ALuint WaveProc(ALvoid *ptr) avail = (ALuint64)(now-start) * pDevice->Frequency / 1000; if(avail < done) { - /* Timer wrapped. Add the remainder of the cycle to the available - * count and reset the number of samples done */ - avail += (ALuint64)0xFFFFFFFFu*pDevice->Frequency/1000 - done; + /* 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)*pDevice->Frequency/1000 - done; done = 0; } if(avail-done < pDevice->UpdateSize) |