Windows 7 如何从特定应用程序捕获音频并路由到特定音频设备?

How to capture audio from specific application and route to specific audio device in Windows 7?

好的,我的问题是:

如何以编程方式从特定应用程序捕获音频,然后将其发送到 Windows 7 中的特定音频设备?

我知道这是可以做到的,因为 SoundLeech 从各个程序中捕获音频,理论上一旦你有了声音,你就可以用它做任何你想做的事(包括播放到任何声音输出设备)。

我是一名 C++ 程序员,但我对 Windows 编程知之甚少。我需要一些指示来从各个程序中捕获声音。我经常与录音打交道,考虑到目前的使用难度,我愿意投入大量工作来开发一种更好地处理声音的方法 Windows。

那么,我如何才能直接从应用程序中捕获音频流,而无需首先通过虚拟音频电缆或类似设备进行路由?

您不能使用标准用户模式 ​​API 来完成。您需要挂接 API 或创建虚拟设备以接受应用程序 streams/sessions.

  • Intercepting and postprocessing all audio streams on Windows
  • Recording Audio Output from a Specific Program on Windows
  • Is it possible to caputre the rendering audio session from another process?
  • Capture audio of a single application on Windows 7