Fix: Silence all notes when stopping song in fluidsynth

This commit is contained in:
Milek7 2020-01-12 15:21:16 +01:00 committed by Charles Pigott
parent 1ab3fe6b85
commit 41163331aa
1 changed files with 1 additions and 0 deletions

View File

@ -136,6 +136,7 @@ void MusicDriver_FluidSynth::StopSong()
}
delete_fluid_player(_midi.player);
fluid_synth_system_reset(_midi.synth);
fluid_synth_all_sounds_off(_midi.synth, -1);
_midi.player = nullptr;
}