summaryrefslogtreecommitdiff
path: root/src/music/fluidsynth.cpp
diff options
context:
space:
mode:
authorMilek7 <Milek7@users.noreply.github.com>2020-01-12 15:21:16 +0100
committerCharles Pigott <charlespigott@googlemail.com>2020-01-12 16:19:02 +0000
commit41163331aa882765e528c0e716f6e49cee2411cb (patch)
treeaf46e7196713fef2b46973c97e86af0bf1fb0668 /src/music/fluidsynth.cpp
parent1ab3fe6b85aa6b8798a149c056fff7ac73f9d5a8 (diff)
downloadopenttd-41163331aa882765e528c0e716f6e49cee2411cb.tar.xz
Fix: Silence all notes when stopping song in fluidsynth
Diffstat (limited to 'src/music/fluidsynth.cpp')
-rw-r--r--src/music/fluidsynth.cpp1
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;
}