--- fluidsynth-git-619fc5c33.old/src/drivers/fluid_adriver.c +++ fluidsynth-git-619fc5c33/src/drivers/fluid_adriver.c @@ -238,10 +238,17 @@ for(i = 0; i < FLUID_N_ELEMENTS(fluid_audio_drivers) - 1; i++) { + char *ent_name = fluid_audio_drivers [i].name; + /* Select the default driver */ if (def_name == NULL) { - def_name = fluid_audio_drivers[i].name; + def_name = ent_name; + } + else if (!strcmp (def_name, "alsa") && + !strcmp (ent_name, "sdl2")) + { + def_name = ent_name; } /* Add the driver to the list of options */