From 8da58c3da02d48adbb6bdd9f2d1489c33a603299 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Wed, 24 Aug 2016 05:31:30 +0200 Subject: ARDOUR::FluidSynth automatically assign first 16 channels --- libs/ardour/fluid_synth.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'libs') 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; } -- cgit v1.2.3