mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-28 00:49:11 +00:00
Fix: Fluidsynth should not try to lock sample data in memory
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user