From c5d4900ea48152805814c277a3c37214ead930c9 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Sat, 29 Oct 2016 03:11:49 +0200 Subject: [PATCH] a-fluidsynth: fix off-by one. Assign all MIDI channels if possible --- libs/plugins/a-fluidsynth.lv2/a-fluidsynth.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/plugins/a-fluidsynth.lv2/a-fluidsynth.c b/libs/plugins/a-fluidsynth.lv2/a-fluidsynth.c index 1af651be3f..4fc53a6d22 100644 --- a/libs/plugins/a-fluidsynth.lv2/a-fluidsynth.c +++ b/libs/plugins/a-fluidsynth.lv2/a-fluidsynth.c @@ -138,7 +138,7 @@ load_sf2 (AFluidSynth* self, const char* fn) int chn; fluid_preset_t preset; sfont->iteration_start (sfont); - for (chn = 0; sfont->iteration_next (sfont, &preset) && chn < 15; ++chn) { + for (chn = 0; sfont->iteration_next (sfont, &preset) && chn < 16; ++chn) { fluid_synth_program_select (self->synth, chn, synth_id, preset.get_banknum (&preset), preset.get_num (&preset)); }