File diff r24217:df2f5854f1e3 → r24218:c32caa9f014d
src/music/fluidsynth.cpp
Show inline comments
 
@@ -47,13 +47,13 @@ static void RenderMusicStream(int16 *buf
 
	std::unique_lock<std::mutex> lock{ _midi.synth_mutex, std::try_to_lock };
 

	
 
	if (!lock.owns_lock() || !_midi.synth || !_midi.player) return;
 
	fluid_synth_write_s16(_midi.synth, samples, buffer, 0, 2, buffer, 1, 2);
 
}
 

	
 
const char *MusicDriver_FluidSynth::Start(const char * const *param)
 
const char *MusicDriver_FluidSynth::Start(const StringList &param)
 
{
 
	std::lock_guard<std::mutex> lock{ _midi.synth_mutex };
 

	
 
	const char *sfont_name = GetDriverParam(param, "soundfont");
 
	int sfont_id;