summaryrefslogtreecommitdiff
path: root/src/music
diff options
context:
space:
mode:
authorNiels Martin Hansen <nielsm@indvikleren.dk>2019-03-10 19:45:49 +0100
committerNiels Martin Hansen <nielsm@indvikleren.dk>2019-03-30 22:11:32 +0100
commitdf673e9b2cd1e7eb1a5654f45409ddf18bf4fd87 (patch)
treeb522bf999bea316c80d90586a0f447ba857165e6 /src/music
parent66c60e52bac69b752f1dd7b7c599577fcbfa17a1 (diff)
downloadopenttd-df673e9b2cd1e7eb1a5654f45409ddf18bf4fd87.tar.xz
Fix: Fluidsynth should not try to lock sample data in memory
Diffstat (limited to 'src/music')
-rw-r--r--src/music/fluidsynth.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/music/fluidsynth.cpp b/src/music/fluidsynth.cpp
index 6baeb899b..49e50eb9e 100644
--- a/src/music/fluidsynth.cpp
+++ b/src/music/fluidsynth.cpp
@@ -58,6 +58,8 @@ const char *MusicDriver_FluidSynth::Start(const char * const *param)
/* Create the settings. */
_midi.settings = new_fluid_settings();
if (!_midi.settings) return "Could not create midi settings";
+ /* Don't try to lock sample data in memory, OTTD usually does not run with privileges allowing that */
+ fluid_settings_setint(_midi.settings, "synth.lock-memory", 0);
/* Create the synthesizer. */
_midi.synth = new_fluid_synth(_midi.settings);