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

查看:47
本文介绍了在 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.

托管包装器在 NAudio 中可用(从 MMDevice 获取 AudioMeterInformation).

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

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

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