Am I able to monitor a program for when it produces sound, then manipulate volume of other programs?

May 6 at 6:00 AM
I'd like to have my program be able to choose an application (namely TeamSpeak) and watch for when it produces audio. When it does I'd like to reduce all other programs producing sound (Youtube[Chrome], windows media player etc.) to something like 50% of their current level, then when teamspeak is no longer producing sound return the volume level to their originals.

Looking at some of the documentation and samples I'm not certain I'd be able to do that with CSCore. Would appreciate anyone letting me know and if so any sample projects that demonstrate the way to go about this, thanks!