aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/midi
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2014-01-15 15:38:54 -0800
committerChris Robinson <[email protected]>2014-01-15 15:38:54 -0800
commit443e6b73b25bd60ae23a6be52540bd8a60a3b473 (patch)
tree42624b82eb7f53208aee2df3fac7bd115cb39268 /Alc/midi
parent5fdc3c093e03e7c3241245befbfcee828472e337 (diff)
Use the 64-bit clamp method when getting the MIDI clock time
Diffstat (limited to 'Alc/midi')
-rw-r--r--Alc/midi/base.c2
1 files changed, 1 insertions, 1 deletions
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);