diff options
Diffstat (limited to 'Alc')
-rw-r--r-- | Alc/midi/fluidsynth.c | 4 |
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); } |