如何从特定应用程序捕获音频并路由到特定的音频设备在Windows 7? [英] How to capture audio from specific application and route to specific audio device in Windows 7?

查看:518
本文介绍了如何从特定应用程序捕获音频并路由到特定的音频设备在Windows 7?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

好,我的问题是这样:



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

我知道一个事实,这可以做,因为 SoundLeech 从单个节目捕获音频,理论上一旦你有声音,你可以做它你想要的(包括播放到任何声音输出设备)。



我是一个C ++程序员,但我对Windows编程知之甚少。我需要一些指针来捕获来自个别程序的声音。我经常与录音工作,我愿意投入大量的工作,以开发一种更好地处理声音在Windows中的方式,因为目前是多么困难的使用。



那么,如何直接从应用程序捕获音频流,而无需先通过虚拟音频电缆等路由?

解决方案

你不能使用标准的用户模式API。您需要挂接API或创建虚拟设备来接受应用程序流/会话。




Ok, my question is this:

How can I programmatically capture audio from a specific application and then send it to a specific audio device in Windows 7?

I know for a fact this can be done, since SoundLeech captures audio from individual programs, and theoretically once you have the sound you can do what you want with it (including play it to any sound output device).

I'm a C++ programmer but I know very little about Windows programming. I need some pointers to capturing sound from individual programs. I work with audio recording very frequently and I would be willing to put in a large amount of work to develop a way to better handle sound in Windows given how difficult to use it currently is.

So how can I capture audio streams directly from applications without first routing them through Virtual Audio Cables or the like?

解决方案

You cannot do it using standard user mode APIs. You need to either hook APIs or create virtual devices to accept application streams/sessions.

这篇关于如何从特定应用程序捕获音频并路由到特定的音频设备在Windows 7?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆