diff options
author | Niels Martin Hansen <nielsm@indvikleren.dk> | 2019-03-10 19:45:49 +0100 |
---|---|---|
committer | Niels Martin Hansen <nielsm@indvikleren.dk> | 2019-03-30 22:11:32 +0100 |
commit | df673e9b2cd1e7eb1a5654f45409ddf18bf4fd87 (patch) | |
tree | b522bf999bea316c80d90586a0f447ba857165e6 /src | |
parent | 66c60e52bac69b752f1dd7b7c599577fcbfa17a1 (diff) | |
download | openttd-df673e9b2cd1e7eb1a5654f45409ddf18bf4fd87.tar.xz |
Fix: Fluidsynth should not try to lock sample data in memory
Diffstat (limited to 'src')
-rw-r--r-- | src/music/fluidsynth.cpp | 2 |
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); |