The audio is not muted when the game window is minimized before the sound system is initialized.
I have created a patch that fixes this bug. I had also noticed another already known bug: sounds bunch after minimized/alt-tabbed and all play at once upon return. My patch fixes this bug as well.
The attached patch mutes the audio when the window is minimized or out of focus. It does so by still playing the sound while not writing to the output buffer. This also makes the S_BlockSound and S_UnblockSound routines redundant. The bug affecting minimizing the window early is fixed by blocking audio int the main loop when the window is minimized.
Regards,
stn
I don't think that I like this.. Eric: what do you say?