在C#中设置麦克风音量 [英] Set microphone volume in C#

查看:583
本文介绍了在C#中设置麦克风音量的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以在C#中设置麦克风音量(通常在控制面板->音频->高级中完成设置,进入录音,然后拖动滑块)?我只想将其设置为最大值,如果这样可以使其更简单.谢谢!

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!

推荐答案

我认为没有托管的方式可以做到这一点.我会调查winmm dll. 此处是指向可用方法的链接.

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.

这篇关于在C#中设置麦克风音量的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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