[Linux] Issue with PCM Shutdown occurs when trying to quit Mapster32
The title is more or less how it goes, the issue can be reproduced by running mapster32 on linux, then quitting. Mapster never quits, just hangs, until the process is forcefully terminated. Poking at the issue reveals that the issue happens in multivoc.cpp
MV_Shutdown
function calls SoundDriver_PCM_Shutdown
function, and never progresses from there. SoundDriver_PCM_Shutdown
, defined in drivers.cpp
, contains one line: SoundDrivers[ASS_PCMSoundDriver].PCM_Shutdown();
, and this is where it hangs until killed.
There is a potential for this to be specific to few machines, however, Mapster32 is the only program that I have experienced this with. Windows does not have this issue.