Hi everyone,

I implemented FMOD in our mod about a month or so ago and it has been
wonderful (after completely rewriting that abysmal wrapper that is on the
VDC, I will post an update on that later I promise). Anyway, FMOD is great,
however, it keeps playing sounds/music even when the game is "out of focus,"
be it alt-tabbed down or simply when playing in a window and you are typing
into firefox for example.

So my question is, is there any easy (read non-hackish) way to detect
whether the game window has focus or not? I am thinking of a function that
only gets called when the window has captured the mouse of the user (I think
i just answered my own question...) but anyway I am just looking for this
elusive entry point to where I can pause/resume my FMOD manager.

P.S. - I am well aware of Win32 functions to do this stuff, but 99.9% of
them require exposure to the underlying win32 framework of the code, of
which, we do not have.

Thanks,
Jon (Killer Monkey)
_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders

Reply via email to