简体   繁体   English

如何静音或调整 windows 系统声音的音量?

[英]How to mute or adjust volume on windows systems sounds?

I am working on an audio application, and it is vital that we can mute Windows systems sounds (warnings, notifications etc) at critical times我正在开发一个音频应用程序,我们可以在关键时刻将 Windows 系统声音(警告、通知等)静音,这一点至关重要

I can set the system volume and access a number of sound related things, but not the Windows systems sounds我可以设置系统音量并访问一些与声音相关的东西,但不是 Windows 系统声音

I can access microphones, loudspeakers (waveOut) and the mixer.我可以访问麦克风、扬声器 (waveOut) 和混音器。 However while in older versions of Windows, the mixer would contain "Systems sounds", but later do not.然而,在 Windows 的旧版本中,混音器将包含“系统声音”,但后来没有。 Opening "Sound Settings" one will find "Systems sounds" under apps.打开“声音设置”,将在应用程序下找到“系统声音”。 If I could get that list, and control it, then I can mute the system.如果我能得到那个列表并控制它,那么我就可以使系统静音。

How do I access that?我如何访问它?

Thanks to the link from Anders, I found the CoreAudio function, which lead me to IsSystemSoundsSession which then lead me to:感谢来自 Anders 的链接,我找到了 CoreAudio function,它引导我到 IsSystemSoundsSession,然后引导我到:

How can i control the volume of a specific software in the windows Volume Mixer? 如何在 windows 音量混合器中控制特定软件的音量?

Here is a similar thing done, which can be easily used for muting the system sounds这是一个类似的事情,可以很容易地用于使系统声音静音

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM