获取在c#主音量 [英] Get Master Sound Volume in c#

查看:283
本文介绍了获取在c#主音量的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要输出的声卡当前的音量。

I need to get the current volume of the output to the sound card.

任何想法如何?

推荐答案

您可以在使用的 IAudioMeterInformation 在Vista中和Win 7的CoreAudio的API的

You can get at these values using IAudioMeterInformation in the CoreAudio APIs in Vista and Win 7.

托管的包装在使用 n音讯(距MMDevice的AudioMeterInformation获得)。

Managed wrappers are available in NAudio (get at the AudioMeterInformation from the MMDevice).

这篇关于获取在c#主音量的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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