display sample type for fluidsynth --version

This commit is contained in:
derselbst 2017-12-09 22:20:25 +01:00
parent c02a5ae5ce
commit 5806d9e9cc

View file

@ -48,6 +48,7 @@
void print_usage(void); void print_usage(void);
void print_help(fluid_settings_t *settings); void print_help(fluid_settings_t *settings);
void print_welcome(void); void print_welcome(void);
void print_configure(void);
/* /*
* the globals * the globals
@ -504,7 +505,7 @@ int main(int argc, char** argv)
else fluid_settings_setstr(settings, "audio.file.type", optarg); else fluid_settings_setstr(settings, "audio.file.type", optarg);
break; break;
case 'V': case 'V':
printf("FluidSynth %s\n", FLUIDSYNTH_VERSION); print_configure();
exit (0); exit (0);
break; break;
case 'v': case 'v':
@ -810,6 +811,17 @@ print_welcome()
FLUIDSYNTH_VERSION); FLUIDSYNTH_VERSION);
} }
void print_configure()
{
puts("Sample type="
#ifdef WITH_FLOAT
"float"
#else
"double"
#endif
);
}
/* /*
* print_help * print_help
*/ */