ARDOUR::FluidSynth automatically assign first 16 channels
This commit is contained in:
parent
cbc5ec764f
commit
8da58c3da0
@ -75,6 +75,9 @@ FluidSynth::load_sf2 (const std::string& fn)
|
||||
|
||||
sfont->iteration_start (sfont);
|
||||
for (count = 0; sfont->iteration_next (sfont, &preset) != 0; ++count) {
|
||||
if (count < 16) {
|
||||
fluid_synth_program_select (_synth, count, _synth_id, preset.get_banknum (&preset), preset.get_num (&preset));
|
||||
}
|
||||
_presets.push_back (BankProgram (
|
||||
preset.get_name (&preset),
|
||||
preset.get_banknum (&preset),
|
||||
@ -85,8 +88,6 @@ FluidSynth::load_sf2 (const std::string& fn)
|
||||
return false;
|
||||
}
|
||||
|
||||
select_program (0, 0);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user