在 C# 中捕获声音输出 [英] Capture Sound Output In C#

查看:127
本文介绍了在 C# 中捕获声音输出的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试用 C# 构建一个程序,它允许我通过网络将音频和视频从一台计算机流式传输到另一台计算机,该计算机连接到一堆视频/音频设备(投影仪、扬声器), 等等).理想情况下,我希望能够直接从演示者"计算机捕获这些数据,而无需插入任何东西.

I'm trying to build a program in C# that will allow me to stream audio and video from one computer, over the network, to another computer, which is hooked up to a bunch of video/audio equipment (projector, speakers, etc). Ideally, I'd like to be able to capture this data directly from the "presenter" computer without it having to plug into anything.

输出"计算机上的视频、流媒体和重新显示一切正常,但我似乎找不到一种无需将电缆插入耳机插孔即可捕获音频输出的好方法并连接到另一台计算机.该程序的全部意义在于允许以无线方式完成此操作,因此这是一个问题.总而言之,我正在寻找某种 C# 接口,它可以让我在 Windows 机器上捕获声音输出,就好像我已将某些东西插入耳机插孔一样.

The video, streaming, and re-displaying on the "output" computer is all working well, but I can't seem to find a good way to capture audio output without the need for a cable plugged in to the headphone jack and wired to the other computer. The whole point of this program is to allow this to be done wirelessly, so this is kind of a problem. To sum up, I'm looking for some sort of C# interface that will allow me to capture the sound output on a windows machine, as though I had plugged something into the headphone jack.

在此先感谢您的帮助.

推荐答案

在 Windows 中,声卡制造商可以选择提供您所听到的"输入流,以便您捕获输出.如果您的声卡/驱动程序没有此功能,您可以尝试使用 Virtual Audio Cable 执行相同的操作.

In Windows, the audio card manufacturers could choose to supply a "what you hear" input stream in order for you to capture the output. If your sound card/driver doesn't have this feature, you could try to use the Virtual Audio Cable to perform the same thing.

在 Windows 7 中,有一项新功能可让您直接收听/捕获任何输入流.

In Windows 7, there's a new functionality that allows you to listen to / capture any input stream directly.

这篇关于在 C# 中捕获声音输出的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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