Initialize synth.midi-channels unconditionally.

This commit is contained in:
jjceresa 2022-01-17 02:51:27 +01:00
parent 6cec702c82
commit 9b94dd2e04

View file

@ -514,9 +514,9 @@ new_fluid_winmidi_driver(fluid_settings_t *settings,
}
fluid_settings_getint(settings, "midi.autoconnect", &autoconnect);
fluid_settings_getint(settings, "synth.midi-channels", &synth_midi_channels);
if ((autoconnect) && (FLUID_STRCASECMP(dev_name, "default") == 0))
{
fluid_settings_getint(settings, "synth.midi-channels", &synth_midi_channels);
max_devices = midiInGetNumDevs(); /* get number of real devices installed */
}
else