2014-03-24 45 views
0

如何检查和使用C#更改系统的音量在Windows中,像这样:如何检查系统音量?

if(SystemVolume.vol == 0){ 
    SystemVolume.vol = 100; 
} 
+0

http://www.dreamincode.net/forums/topic/45693-controlling-sound-volume-in-c%23/#/ –

回答

0

查找到Windows“音频会议”的概念。有以下link建议的一些接口,即ISimpleAudioVolume,IChannelAudioVolumeIAudioStreamVolume接口。

虽然给出的代码示例在C++中,但它应该是有用的。