Elaborate some error messages

This commit is contained in:
derselbst 2021-05-01 10:00:34 +02:00
parent 10510e486b
commit 0825e815a8
3 changed files with 7 additions and 5 deletions

View file

@ -281,11 +281,11 @@ find_fluid_audio_driver(fluid_settings_t *settings)
{
if(allnames[0] != '\0')
{
FLUID_LOG(FLUID_INFO, "Valid drivers are: %s", allnames);
FLUID_LOG(FLUID_INFO, "This build of fluidsynth supports the following audio drivers: %s", allnames);
}
else
{
FLUID_LOG(FLUID_INFO, "No audio drivers available.");
FLUID_LOG(FLUID_INFO, "This build of fluidsynth doesn't support any audio drivers.");
}
FLUID_FREE(allnames);

View file

@ -172,11 +172,11 @@ fluid_midi_driver_t *new_fluid_midi_driver(fluid_settings_t *settings, handle_mi
{
if(allnames[0] != '\0')
{
FLUID_LOG(FLUID_INFO, "Valid drivers are: %s", allnames);
FLUID_LOG(FLUID_INFO, "This build of fluidsynth supports the following MIDI drivers: %s", allnames);
}
else
{
FLUID_LOG(FLUID_INFO, "No MIDI drivers available.");
FLUID_LOG(FLUID_INFO, "This build of fluidsynth doesn't support any MIDI drivers.");
}
FLUID_FREE(allnames);

View file

@ -586,7 +586,9 @@ int main(int argc, char **argv)
break;
case 'j':
#if JACK_SUPPORT
fluid_settings_setint(settings, "audio.jack.autoconnect", 1);
#endif
fluid_settings_setint(settings, "midi.autoconnect", 1);
break;
@ -1075,7 +1077,7 @@ int main(int argc, char **argv)
if(adriver == NULL)
{
fprintf(stderr, "Failed to create the audio driver\n");
fprintf(stderr, "Failed to create the audio driver. Giving up.\n");
goto cleanup;
}