diff options
author | Milek7 <Milek7@users.noreply.github.com> | 2020-01-12 15:21:16 +0100 |
---|---|---|
committer | Charles Pigott <charlespigott@googlemail.com> | 2020-01-12 16:19:02 +0000 |
commit | 41163331aa882765e528c0e716f6e49cee2411cb (patch) | |
tree | af46e7196713fef2b46973c97e86af0bf1fb0668 | |
parent | 1ab3fe6b85aa6b8798a149c056fff7ac73f9d5a8 (diff) | |
download | openttd-41163331aa882765e528c0e716f6e49cee2411cb.tar.xz |
Fix: Silence all notes when stopping song in fluidsynth
-rw-r--r-- | src/music/fluidsynth.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/music/fluidsynth.cpp b/src/music/fluidsynth.cpp index 3b4789c66..89cb7273f 100644 --- a/src/music/fluidsynth.cpp +++ b/src/music/fluidsynth.cpp @@ -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; } |