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

+3


source to share


2 answers


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).



+2


source


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.

0


source







All Articles