summaryrefslogtreecommitdiff
path: root/libs/ardour/fluid_synth.cc
diff options
context:
space:
mode:
Diffstat (limited to 'libs/ardour/fluid_synth.cc')
-rw-r--r--libs/ardour/fluid_synth.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/libs/ardour/fluid_synth.cc b/libs/ardour/fluid_synth.cc
index df856af561..2978e48181 100644
--- a/libs/ardour/fluid_synth.cc
+++ b/libs/ardour/fluid_synth.cc
@@ -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;
}