http://bugs.winehq.org/show_bug.cgi?id=26697
--- Comment #9 from Jörg Höhle hoehle@users.sourceforge.net 2012-02-07 00:31:07 CST --- Forget it. midiStreamClose from within a function callback is pulling the rug from under one's own feet if executed by the player itself. Some other thread must execute the callback.