jarikomppa/soloud — pull request #2 by tv-s (2013-09-10 17:35:41+00:00)
Title: WinMM: fix random crashing when shutting down

never experienced any crashing with msvc but luckily I tried also with mingw.
if you call waveOutReset before killing the thread, audio processing starts all over again because the thread is still running. then when you try to delete those sample buffers, audio driver might still be using them -> crash. kinda stupid mistake left by me :)