Hello, I've been helping Sivak with his program and am the one who suggested he posted those windows messages.
I just want to say that I've experienced this problem in Windows first hand. An emulator I was writing way back had the problem where if you pressed alt, enetered a menu, or dragged/resized the window, the program would not only hang, but the audio would loop (I was streaming with directsound, and the loss of CPU attention prevented me from updating the buffer, causing the same 80 ms data to loop repeatedly -- yuk)
This was an unnacceptable situation for my program so I looked into solutions and found the messages Sivak posted.
I could pause my audio when the first message in the pair came, then unpause and resync my timing mechanism when the latter came. Worked like a charm.
I think that having SFML forward these messages to programs would be of great use and a fantastic addition to SMFL. I'd bet this is a common problem for many users. And I know it would certainly solve the problem Sivak is having.
Thanks.
EDIT:
I should note that the problem Sivak is having is not that the program is pausing, it's that the timing mechanism is trying to "catch up" after the long pause. So it runs at super speed after the pause.
So what he needs is a way to detect when the pause is starting/finished so that he can adjust the timing mechanism appropriately.
I just reread the thread and this point wasn't really made clear.