C#-从声卡获取出站声音数据 [英] C# - getting outbound sound data from sound card

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

问题描述

大家好!

我找到了许多有用的帖子,它们与从麦克风录制声音数据有关,但似乎找不到任何有关如何从声卡中听到声音的信息.

基本上我想做的是:
一个程序,可以可视化您从声卡实际听到的输出声音.
我打算使用Jeff Morton的"C#中的声音可视化器"作为可视化的基础.顺便说一句,该程序似乎无法在我的计算机上运行,​​仍然需要弄清楚...

谢谢你,
Gabor

Hey guys!

I''ve found loads of useful posts regarding recording sound data from a microphone but can''t seem to find anything on how to get what you hear from the sound card.

Basically what I''m trying to make is:
a program that visualizes the output sound that you actually hear coming from the sound card.
I''m planning to use Jeff Morton''s "Sound visualizer in C#" as a base for the visualization. By the way this program doesn''t seem to work on my computer, still need to figure that out...

Thank you ahead,
Gabor

推荐答案

您可能想签出过滤器.过滤器是编解码器(编码器/解码器)的一部分,使您可以分解"机器用来从第一个音源到扬声器获取声音的整个序列.

为了更好地理解这一点,您可能需要下载"GraphEdit"并渲染音频文件(例如mp3文件). Graphedit将显示用于解码mp3并最终将音频传递到扬声器的过滤器.

在您的代码中,您将能够添加/删除过滤器及其之间的连接.您的过滤器会分析音频,然后将音频传递给扬声器.然后根据您所分析的音频来决定它!

我敢打赌,您会在DirectX SDK中找到一些示例!

祝你好运!

爱德华
You may want to check out Filters. A filter is part of a codec (coder / decoder) which enables you to ''break'' into the entire sequence your machine uses to get sound from the very first source, to your speakers.

To understand this better you may want to download ''GraphEdit'' and render an audio file (for example a mp3 file). Graphedit will show the filters used to decode the mp3 and finally get the audio to your speakers.

In your code, you''ll be able to add / remove filters and the connections inbetween. Your filter analyses the audio and passes the audio to the speakers. Then wat it does with the analysed audio is up to you!

I bet you''ll find some examples in the DirectX SDK!

Good luck!

Eduard


这篇关于C#-从声卡获取出站声音数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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