简体   繁体   English

C# 音频设备禁用

[英]C# audio device disabling

I am trying to make an windows form app in c# that lists all the audio devices and disables the selected one.我正在尝试在 c# 中制作一个 windows 窗体应用程序,它列出所有音频设备并禁用选定的一个。 as I understand to disable an audio device I need it's class guid and instance path.据我所知,要禁用音频设备,我需要它的类 guid 和实例路径。 but that is all I got.但这就是我所得到的。 any idea how to do this in c# ?知道如何在 c# 中做到这一点吗? Thanks in advance.提前致谢。

This question has some good answers on how to enumerate audio devices and get their IDs:这个问题对如何枚举音频设备并获取它们的 ID 有一些很好的答案:

How to enumerate audio out devices in c# 如何在c#中枚举音频输出设备

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM