diff options
author | Chris Robinson <[email protected]> | 2010-12-03 23:48:59 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2010-12-03 23:48:59 -0800 |
commit | 191803ad53c156d3f056b649c76e441042a385fb (patch) | |
tree | 3ccdc05fc3dc4530f5652bef6fb1957b557cf91d /Alc/null.c | |
parent | 1b7be672faf780db0266f5174af03b12f0a87b35 (diff) |
Fix wave and null device calculations when the timer wraps
Diffstat (limited to 'Alc/null.c')
-rw-r--r-- | Alc/null.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -57,7 +57,7 @@ static ALuint NullProc(ALvoid *ptr) { /* Timer wrapped. Add the remainder of the cycle to the available * count and reset the number of samples done */ - avail += 0xFFFFFFFFu*Device->Frequency/1000 - done; + avail += (ALuint64)0xFFFFFFFFu*Device->Frequency/1000 - done; done = 0; } if(avail-done < Device->UpdateSize) |