检查系统声音状态 [英] Check the system sound state
本文介绍了检查系统声音状态的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
嗨....我正在申请.在那我想静音和取消静音系统.我已经做到了,但是,我面临的一个问题是每次我将声音静音并关闭应用程序时,但是当我下次开始运行应用程序时,它仅保持静音状态...所以我想检查系统静音或取消静音状态.
hi.... i am making application . In that i want to mute and unmute the system. i have done it but, i m facing one problem that is every time i mute the sound and close the application but when i start running the application next time it remains on the mute state only... so i want to check the system mute or unmute status.
推荐答案
您将要使用从Windows导入的混合器API.
值得庆幸的是,有一个.NET包装程序用于Win API的各个部分,并且其中包含一个混合器.您可以从 SourceForge [
You''ll want to use the mixer API, imported from Windows.
Thankfully there is a .NET wrapper for parts of the Win API and there is a mixer in it. You can get the project from SourceForge[^].
Cheers.
这篇关于检查系统声音状态的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文