Pin the DLL for Windows
commit1a4a0abd1a1fd9a20345db54efef6587bec67197
authorChris Robinson <chris.kcat@gmail.com>
Fri, 9 Mar 2012 01:42:16 +0000 (8 17:42 -0800)
committerChris Robinson <chris.kcat@gmail.com>
Fri, 9 Mar 2012 01:42:16 +0000 (8 17:42 -0800)
tree36be0e37fb89ca39a25f6d64fa6c484c7d03c931
parentdddacc25a53e12b036b3599fd045b9eab942d5af
Pin the DLL for Windows

The mmdevapi backend does not react well to being unloaded dynamically. It has
a message-handling thread running in the background which can't quit before
DllMain is called with DLL_PROCESS_DETACH, at which point it's too late to
safely message and wait for it shutddown, thus it can continue running after
the DLL is unloaded from memory.
Alc/ALc.c
CMakeLists.txt