aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2014-07-05 01:47:08 -0700
committerChris Robinson <[email protected]>2014-07-05 01:47:08 -0700
commitb88aaaf1bc36f4e59e3052396d39680a4c1d54ff (patch)
treebd5b575e8cbe3d7d15c5cbd6ff7742761f9b166f
parent47f5e710c23849f43428eb1223db77091cd9cb90 (diff)
Fix a couple checks
-rw-r--r--Alc/midi/fluidsynth.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Alc/midi/fluidsynth.c b/Alc/midi/fluidsynth.c
index 73d4c47b..c4b64243 100644
--- a/Alc/midi/fluidsynth.c
+++ b/Alc/midi/fluidsynth.c
@@ -776,13 +776,13 @@ static void FSynth_process(FSynth *self, ALuint SamplesToDo, ALfloat (*restrict
if(tonext > 0)
{
- ALuint todo = mini(tonext, SamplesToDo-total);
+ ALuint todo = minu(tonext, SamplesToDo-total);
fluid_synth_write_float(self->Synth, todo, DryBuffer[FrontLeft], total, 1,
DryBuffer[FrontRight], total, 1);
total += todo;
tonext -= todo;
}
- if(total < SamplesToDo && tonext == 0)
+ if(total < SamplesToDo && tonext <= 0)
FSynth_processQueue(self, time);
}