这是连续地从取样的最简单方式线路中使用C# [英] What is the simplest way to continuously sample from the line-in using C#

查看:136
本文介绍了这是连续地从取样的最简单方式线路中使用C#的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想从我的电脑的音频线使用C#连续采样(然后处理该数据)。什么是做取样的最佳方式?

I want to continuously sample from my PC's audio line in using C# (then process that data). What is the best way to do the sampling?

推荐答案

您可以使用开放源代码的 n音讯 .NET音频库。看一看在NAudioDemo项目以查看记录使用WaveIn功能的WAV文件的一个简单的例子。 n音讯现在还包括使用WASAPI(Windows Vista和以上)和ASIO捕获音频的能力(如果你的声卡有一个ASIO驱动)。

You can do some (basic) audio capture using the open source NAudio .NET Audio Library. Have a look at the NAudioDemo project to see a simple example of recording to a WAV file using the WaveIn functions. NAudio also now includes the ability to capture audio using WASAPI (Windows Vista and above) and ASIO (if your soundcard has an ASIO driver).

这篇关于这是连续地从取样的最简单方式线路中使用C#的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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