Set microphone volume in C#

你。 提交于 2019-12-12 17:32:22

问题


Is there a way to set the microphone volume in C# (normally done in control panel -> audio -> advanced, go to recording, and then dragging the slider)? I only want to set it to maximum, if that makes it any easier. Thanks!


回答1:


I don't think there's a managed way to do this. I would look into the winmm dll. Here is a link to the available methods.

Also, here's an example from CodeProject for how it could be used.



来源:https://stackoverflow.com/questions/848469/set-microphone-volume-in-c-sharp

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!