1
0
Fork 0

Fix: Fluidsynth should not try to lock sample data in memory

pull/7452/head
Niels Martin Hansen 2019-03-10 19:45:49 +01:00
parent 66c60e52ba
commit df673e9b2c
1 changed files with 2 additions and 0 deletions

View File

@ -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);