mirror of
https://github.com/ZDoom/fluidsynth.git
synced 2024-12-11 21:31:18 +00:00
parent
048c51c4ab
commit
2cc0d0ea17
1 changed files with 8 additions and 3 deletions
|
@ -695,9 +695,14 @@ fluid_handle_fonts(fluid_synth_t* synth, int ac, char** av, fluid_ostream_t out)
|
|||
|
||||
for (i = 0; i < num; i++) {
|
||||
sfont = fluid_synth_get_sfont(synth, i);
|
||||
fluid_ostream_printf(out, "%2d %s\n",
|
||||
fluid_sfont_get_id(sfont),
|
||||
fluid_sfont_get_name(sfont));
|
||||
if (sfont) {
|
||||
fluid_ostream_printf(out, "%2d %s\n",
|
||||
fluid_sfont_get_id(sfont),
|
||||
fluid_sfont_get_name(sfont));
|
||||
}
|
||||
else {
|
||||
fluid_ostream_printf(out, "sfont is \"NULL\" for index %d\n", i);
|
||||
}
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
|
Loading…
Reference in a new issue