aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/backends
diff options
context:
space:
mode:
Diffstat (limited to 'Alc/backends')
-rw-r--r--Alc/backends/null.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/Alc/backends/null.c b/Alc/backends/null.c
index 8e581f15..10068630 100644
--- a/Alc/backends/null.c
+++ b/Alc/backends/null.c
@@ -52,9 +52,9 @@ static ALuint NullProc(ALvoid *ptr)
avail = (ALuint64)(now-start) * Device->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*Device->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)*Device->Frequency/1000 - done;
done = 0;
}
if(avail-done < Device->UpdateSize)