DirectSound : stop play when switching between windows in the same application
C / C++ / MFC
1
Posts
1
Posters
0
Views
1
Watching
-
I'm developing a game application, with multiple windows, in C++ on Win32. My sound needs is to play a few short sounds when some events happen, plus some background music in the main menu. The thing I need to do : stop play sounds of window1 when switching focus to window2 in my application. I CAN DO THIS PROGRAMMATICALLY, but I wonder if it's a built-in capability of the DirectSound API. Note: it does auto-mutes my app sounds when switching focus to another app, but doesn't when switching windows inside my app.