display sample type for fluidsynth --version

This commit is contained in:
derselbst 2017-12-09 22:20:25 +01:00
parent c02a5ae5ce
commit 5806d9e9cc
1 changed files with 13 additions and 1 deletions

View File

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