Windows: WindowsMME music halting has chance to freeze the game
This is a problem that occurs when stopping the playback of midi files using WindowsMME. It does not occur with SF2, OPL3, ogg or flac playback. I have also had other users report the same problem while testing WGRealms 2.
Typically after some time has passed playing the same track, the game will freeze as it attempts to shut down the playback. This freeze exclusively occurred on stopping playback, and never on the loop of a currently playing midi.
The following is a backtrace of when the error occurred. The trace indicates a deadlock of some form, though the condition that is being waited on is unknown to me: