mirror of
https://github.com/ZDoom/fluidsynth.git
synced 2025-01-31 13:40:35 +00:00
clarify log message when no MIDI drivers are available
This commit is contained in:
parent
327b3fb45b
commit
f6e70b38c7
1 changed files with 12 additions and 2 deletions
|
@ -160,9 +160,19 @@ fluid_midi_driver_t *new_fluid_midi_driver(fluid_settings_t *settings, handle_mi
|
|||
}
|
||||
}
|
||||
|
||||
FLUID_LOG(FLUID_ERR, "Couldn't find the requested midi driver.");
|
||||
allnames = fluid_settings_option_concat(settings, "midi.driver", NULL);
|
||||
FLUID_LOG(FLUID_ERR, "Couldn't find the requested midi driver. Valid drivers are: %s.",
|
||||
allnames ? allnames : "ERROR");
|
||||
if(allnames != NULL)
|
||||
{
|
||||
if(allnames[0] != '\0')
|
||||
{
|
||||
FLUID_LOG(FLUID_INFO, "Valid drivers are: %s", allnames);
|
||||
}
|
||||
else
|
||||
{
|
||||
FLUID_LOG(FLUID_INFO, "No MIDI drivers available.");
|
||||
}
|
||||
}
|
||||
|
||||
FLUID_FREE(allnames);
|
||||
|
||||
|
|
Loading…
Reference in a new issue