ref: d19795845c93ee4a3a4e0c69ed47e5a514f6f09c
parent: 4537cf40ac55224d1676b77555dbfe193bd5bedc
author: Michael Day <mikeguy42@gmail.com>
date: Fri Aug 13 18:36:13 EDT 2021
Add FluidSynth soundfont path to setup
--- a/src/setup/sound.c
+++ b/src/setup/sound.c
@@ -42,6 +42,7 @@
};
static const char *cfg_extension[] = { "cfg", NULL };
+static const char *sf2_extension[] = { "sf2", NULL };
// Config file variables:
@@ -65,6 +66,7 @@
static char *music_pack_path = NULL;
static char *timidity_cfg_path = NULL;
+static char *fluidsynth_sf_path = NULL;
static char *gus_patch_path = NULL;
static int gus_ram_kb = 1024;
@@ -195,6 +197,12 @@
TXT_NewFileSelector(&timidity_cfg_path, 34,
"Select Timidity config file",
cfg_extension),
+ TXT_NewStrut(4, 0),
+ TXT_NewLabel("FluidSynth soundfont file: "),
+ TXT_NewStrut(4, 0),
+ TXT_NewFileSelector(&fluidsynth_sf_path, 34,
+ "Select FluidSynth soundfont file",
+ sf2_extension),
NULL)),
NULL);
}
@@ -215,6 +223,7 @@
M_BindStringVariable("gus_patch_path", &gus_patch_path);
M_BindStringVariable("music_pack_path", &music_pack_path);
M_BindStringVariable("timidity_cfg_path", &timidity_cfg_path);
+ M_BindStringVariable("fluidsynth_sf_path", &fluidsynth_sf_path);
M_BindIntVariable("snd_sbport", &snd_sbport);
M_BindIntVariable("snd_sbirq", &snd_sbirq);