aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2012-03-03 08:47:23 -0800
committerChris Robinson <[email protected]>2012-03-03 08:47:23 -0800
commita93ff6ef3c24856cd0d05d89cf8d7c051bdc25e6 (patch)
tree6a4bfbb474601a969d15a9fde75a5fc1544e0758
parent44e10c4f6916060bd30a4b25e1055f7f029f4314 (diff)
Slight correction for handling the null backend's timer wrapping
-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)