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