有没有办法在具有两个音频输出的 cpu 中为特定程序选择音频端口?

Is there a way to choose the audio port for a particular program in a cpu with two audio outputs?

我的 cpu 有两个音频输出。一个用于扬声器,另一个用于 headphones.I 想要创建一个程序,我可以在其中选择允许哪个程序在哪个端口播放声音。这样我就可以把耳机放在一个端口上,然后在连接到另一个端口的扬声器上播放一些东西。目前,如果我将耳机连接到另一个端口,后端口的扬声器会关闭。

PS : 真的不知道为此选择哪个标签。请推荐合适的标签。

我不知道正确的最终解决方案是什么,还没有使用涉及其他应用程序的声音 API(处理第 3 方闭源应用程序的声音输出选项),​​我不确定是否它通常是支持的场景。但一些帮助您入门的提示可能是:

  • 1. 网络搜索查询 - 这就是我用来 "quickly" 查找其他提示的方法:
    • application specific audio output
    • windows open source application specific audio output
    • windows audio mixer api
    • open source configurable audio mixer for windows
  • MSDN: Windows → Dev Center - Desktop → Audio Mixer Reference - 这可能是您应该学习的基本内容,但可能是学习曲线陡峭的最低级内容
  • Super User: Assigning programs to specific audio outputs in Windows 7 - 这可能是一些现成的解决方案
  • SoundSwitch - 开源,study/tweak - “使用 SoundSwitch,你只需配置一次你想要切换的播放设​​备,然后你可以按 Ctrl+Alt +F11 自动切换"
  • JACK Audio Connection Kit - 开源 - “JACK on Windows 是一个多用途应用程序,使用 Windows 系统驱动程序连接音频和 MIDI...它使用 PortAudio 项目 "
  • 连接(输出)到那些音频驱动程序