From 0825e815a8f3a6381e48473f3b316e84e46dd5ee Mon Sep 17 00:00:00 2001 From: derselbst Date: Sat, 1 May 2021 10:00:34 +0200 Subject: [PATCH] Elaborate some error messages --- src/drivers/fluid_adriver.c | 4 ++-- src/drivers/fluid_mdriver.c | 4 ++-- src/fluidsynth.c | 4 +++- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/drivers/fluid_adriver.c b/src/drivers/fluid_adriver.c index d35547aa..bf8f0b7a 100644 --- a/src/drivers/fluid_adriver.c +++ b/src/drivers/fluid_adriver.c @@ -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); diff --git a/src/drivers/fluid_mdriver.c b/src/drivers/fluid_mdriver.c index 12b69204..973aef58 100644 --- a/src/drivers/fluid_mdriver.c +++ b/src/drivers/fluid_mdriver.c @@ -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); diff --git a/src/fluidsynth.c b/src/fluidsynth.c index c1c1b81e..721dc729 100644 --- a/src/fluidsynth.c +++ b/src/fluidsynth.c @@ -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; }