summaryrefslogtreecommitdiff
path: root/src/music/fluidsynth.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/music/fluidsynth.cpp')
-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);