aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/ALc.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2010-08-01 16:31:00 -0700
committerChris Robinson <[email protected]>2010-08-01 16:31:00 -0700
commit241ddf76d4e3b7b0efd771bbc8270e1da2a7ca72 (patch)
tree601612b2df28974dde09f133155641e09fdda0d5 /Alc/ALc.c
parentfe6e73ede9c4137992e2945bf4db0d7ab897208b (diff)
Enforce the device time to be a multiple of the reported resolution
Diffstat (limited to 'Alc/ALc.c')
-rw-r--r--Alc/ALc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Alc/ALc.c b/Alc/ALc.c
index 66fb6890..257c2b0d 100644
--- a/Alc/ALc.c
+++ b/Alc/ALc.c
@@ -1364,6 +1364,7 @@ ALC_API ALCvoid ALC_APIENTRY alcGetIntegerv(ALCdevice *device,ALCenum param,ALsi
else
{
ALuint64 t = ALCdevice_GetTime(device);
+ t -= t%device->TimeRes;
data[0] = t&0xffffffff;
data[1] = t>>32;
}