From 443e6b73b25bd60ae23a6be52540bd8a60a3b473 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Wed, 15 Jan 2014 15:38:54 -0800 Subject: Use the 64-bit clamp method when getting the MIDI clock time --- Alc/midi/base.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Alc') diff --git a/Alc/midi/base.c b/Alc/midi/base.c index cfeda001..25dd19d9 100644 --- a/Alc/midi/base.c +++ b/Alc/midi/base.c @@ -206,7 +206,7 @@ extern inline void MidiSynth_reset(MidiSynth *self); ALuint64 MidiSynth_getTime(const MidiSynth *self) { ALuint64 time = self->LastEvtTime + (self->SamplesSinceLast/self->SamplesPerTick); - return clampu(time, self->LastEvtTime, self->NextEvtTime); + return clampu64(time, self->LastEvtTime, self->NextEvtTime); } extern inline ALuint64 MidiSynth_getNextEvtTime(const MidiSynth *self); -- cgit v1.2.3