13
0

a-fluidsynth: fix off-by one. Assign all MIDI channels if possible

This commit is contained in:
Robin Gareus 2016-10-29 03:11:49 +02:00
parent 9d63002d2f
commit c5d4900ea4

View File

@ -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));
}