mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-04 18:28:03 +01:00
Fix: Silence all notes when stopping song in fluidsynth
This commit is contained in:
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
Block a user