mirror of
https://github.com/ZDoom/fluidsynth.git
synced 2025-01-31 13:40:35 +00:00
Merge pull request #257 from VolcanoMobile/default_soundfont_optional
dont register synth.default-soundfont if not defined
This commit is contained in:
commit
f17f5333a8
1 changed files with 3 additions and 1 deletions
|
@ -184,8 +184,10 @@ void fluid_synth_settings(fluid_settings_t* settings)
|
||||||
FLUID_HINT_TOGGLED, NULL, NULL);
|
FLUID_HINT_TOGGLED, NULL, NULL);
|
||||||
fluid_settings_register_str(settings, "midi.portname", "", 0, NULL, NULL);
|
fluid_settings_register_str(settings, "midi.portname", "", 0, NULL, NULL);
|
||||||
|
|
||||||
|
#ifdef DEFAULT_SOUNDFONT
|
||||||
fluid_settings_register_str(settings, "synth.default-soundfont",
|
fluid_settings_register_str(settings, "synth.default-soundfont",
|
||||||
DEFAULT_SOUNDFONT, 0, NULL, NULL);
|
DEFAULT_SOUNDFONT, 0, NULL, NULL);
|
||||||
|
#endif
|
||||||
|
|
||||||
fluid_settings_register_int(settings, "synth.polyphony",
|
fluid_settings_register_int(settings, "synth.polyphony",
|
||||||
256, 1, 65535, 0, NULL, NULL);
|
256, 1, 65535, 0, NULL, NULL);
|
||||||
|
|
Loading…
Reference in a new issue