summarylogtreecommitdiffstats
path: root/sound.patch
diff options
context:
space:
mode:
Diffstat (limited to 'sound.patch')
-rw-r--r--sound.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/sound.patch b/sound.patch
new file mode 100644
index 000000000000..3f8f71a8ff96
--- /dev/null
+++ b/sound.patch
@@ -0,0 +1,17 @@
+--- src/sfx.cpp
++++ src/sfx.cpp
+@@ -747,12 +747,12 @@
+
+ /* Work-around to disable fluidsynth and fallback to TiMidity++: */
+ /* TODO: allow user to set it at run-time */
+- /* SDL_setenv("SDL_SOUNDFONTS="); */
++ SDL_setenv("SDL_SOUNDFONTS", "/usr/share/soundfonts/FluidR3_GM.sf2", 0);
+ /* SDL_setenv("SDL_FORCE_SOUNDFONTS=1"); */
+
+ /* To specify an alternate timidity.cfg */
+ /* Cf. SDL2_mixer/timidity/config.h for defaults */
+- /* SDL_setenv("TIMIDITY_CFG", "somewhere/timidity.cfg", 0); */
++ SDL_setenv("TIMIDITY_CFG", "/etc/timidity/timidity.cfg", 1);
+
+ /* MIX_DEFAULT_FREQUENCY is ~22kHz are considered a good default,
+ 44kHz is considered too CPU-intensive on older computers */