使用命令行调整 Windows 中某些程序的声音?

使用命令行调整 Windows 中某些程序的声音?

这可能吗?我看到了 NirCmd,但它只能调整主声音,有没有办法只调整特定程序的声音,就像在 Mixer 中一样……

答案1

如果你还在寻找,我用 C# 编写了一个小工具,利用 Windows Core Audio API,这个图书馆(CoreAudio2)。您可以找到命令行工具这里

使用方法如下。有三个选项:list (-l)、info (-i) 和 set (-s):

使用列表,您可以获得以下输出:id: <a active, i inactive> program name - window title.

VolumeSetter.exe -l
0: <i> wmplayer -
1: <i> wmplayer -
2: <i> Steam - Steam
3: <a> chrome - What are Continents? - YouTube - Google Chrome
4: <i> FlashPlayerPlugin_13_0_0_214 -
5: <i> plugin-container -
6: <i> Idle -
7: <i> firefox - New Tab - Mozilla Firefox

VolumeSetter.exe -i 3
Id: 3
Application: chrome
Window Title: What are Continents? - YouTube - Google Chrome
Active: True
Volume: 0,5
Mute: False

VolumeSetter.exe -s 3 100
Volume of chrome - What are Continents? - YouTube - Google Chrome set to 100

相关内容