检查哪些程序正在播放音频? [英] Check what programs are playing audio?

查看:54
本文介绍了检查哪些程序正在播放音频?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在制作一个程序,我想查找并静音正在播放音频的程序,以便听到的都是我的.

I am making a program and I want to find and mute programs that are playing audio so all you hear is mine.

(这是程序的一个选项,对此没有恶意)

(This is an option for the program, nothing malicious about it)

我已经查了一下,但似乎找不到一种方法来检查哪些程序正在播放音频(就像Windows一样)

I have looked it up and I cannot seem to find a way to check what programs are playing audio (Much like windows does)

我没有尝试执行此操作的任何代码示例,因为id不知道.

I don't have any code examples of attempting this because id has no idea.

万一有人错过阅读或我没有说出上述正确的句子,我想找到每个音频播放过程,并杀死静音流程

In case someone misses reads or I don't word the above sentences correct I would like to find EVERY process with audio playing and either KILL or MUTE the process

推荐答案

如果可以获取

If you can get Peak meters for individual programs on Windows 7, you can identify sessions and applications. IAudioSessionControl interface offers you muting options similar to what user can do via standard Volume Mixer application (session muting in particular).

这篇关于检查哪些程序正在播放音频?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆