diff options
author | Robin Gareus <robin@gareus.org> | 2016-10-29 03:11:49 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2016-10-29 19:57:43 +0200 |
commit | c5d4900ea48152805814c277a3c37214ead930c9 (patch) | |
tree | 31c4e36c5b81890ec687a753eafdad3083f0c262 /libs/plugins | |
parent | 9d63002d2f204dd1072375c2af9123be3b24146f (diff) |
a-fluidsynth: fix off-by one. Assign all MIDI channels if possible
Diffstat (limited to 'libs/plugins')
-rw-r--r-- | libs/plugins/a-fluidsynth.lv2/a-fluidsynth.c | 2 |
1 files changed, 1 insertions, 1 deletions
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)); } |