inform user if compiled without SF3 support

This commit is contained in:
Tom M 2017-08-07 18:23:46 +02:00 committed by GitHub
parent b338db1ebc
commit 6e4f9134b9

View file

@ -2290,11 +2290,17 @@ process_info (int size, SFData * sf, FILE * fd)
return (FAIL);
}
#if LIBSNDFILE_SUPPORT
if (sf->version.major == 3) {}
else
if (sf->version.major == 3) {
#if !LIBSNDFILE_SUPPORT
FLUID_LOG (FLUID_WARN,
_("Sound font version is %d.%d but fluidsynth was compiled without"
" support for (v3.x)"),
sf->version.major,
sf->version.minor);
return (FAIL);
#endif
if (sf->version.major > 2) {
}
else if (sf->version.major > 2) {
FLUID_LOG (FLUID_WARN,
_("Sound font version is %d.%d which is newer than"
" what this version of FLUID Synth was designed for (v2.0x)"),