mirror of https://github.com/OpenTTD/OpenTTD
Fix: Silence all notes when stopping song in fluidsynth
parent
1ab3fe6b85
commit
41163331aa
|
@ -136,6 +136,7 @@ void MusicDriver_FluidSynth::StopSong()
|
||||||
}
|
}
|
||||||
delete_fluid_player(_midi.player);
|
delete_fluid_player(_midi.player);
|
||||||
fluid_synth_system_reset(_midi.synth);
|
fluid_synth_system_reset(_midi.synth);
|
||||||
|
fluid_synth_all_sounds_off(_midi.synth, -1);
|
||||||
_midi.player = nullptr;
|
_midi.player = nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue