Changeset - r23566:429c76c0dfda
[Not reviewed]
master
0 1 0
Niels Martin Hansen - 5 years ago 2019-03-10 18:45:49
nielsm@indvikleren.dk
Fix: Fluidsynth should not try to lock sample data in memory
1 file changed with 2 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/music/fluidsynth.cpp
Show inline comments
 
@@ -55,12 +55,14 @@ const char *MusicDriver_FluidSynth::Star
 

	
 
	DEBUG(driver, 1, "Fluidsynth: sf %s", sfont_name);
 

	
 
	/* 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);
 
	if (!_midi.synth) return "Could not open synth";
 

	
 
	/* Load a SoundFont and reset presets (so that new instruments
0 comments (0 inline, 0 general)