Check which programs are playing sound?
I am making a program and I want to find and disable programs that play audio, so everything you hear is mine.
(This is an option for the program, nothing malicious)
I went through it and I can't find a way to check which programs play audio (how windows do it)
I have no code examples for this because id has no idea.
In case anyone misses reading or I have phrased the above suggestions incorrectly, I would like to find the EVERY process with sound playback and KILL or MUTE process
source to share
If you can get peak meters for individual programs in Windows 7 , you can identify sessions and applications. The interface IAudioSessionControl
offers disconnect options similar to what the user can do with the standard Volume Mixer app (specifically when disconnecting a session).
source to share
Was quite similar question , perhaps, the same approach that I published, in its reply, would be consistent with your script: fooobar.com/questions/1997730 / ... . What you need to change is the file types (in .mp3
, .wav
etc.) and kill the processes found except your applications.
Disadvantages: You need to run the application as administrator and also use a third party console application.
source to share