如何从USB音频类读取数据? [英] How do I read data from USB audio class?

查看:156
本文介绍了如何从USB音频类读取数据?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想创建一个具有Windows录音机功能的应用程序 - 它从USB音频设备读取/存储数据。我想使用WinUSB但似乎不支持音频类。有人可以告诉我哪种方式来做这个应用程序(文档,方法,示例,...)

I want to make a app that have a function like Sound Recorder of windows - it reads/store data from usb audio device. I thought to use WinUSB but it seem not support audio class. Can someone tell me which way to do this app ( document, method, sample,...)

推荐答案

CodeProject上有许多资源用于记录声音的C#代码。这是最近的一篇(2014年4月)文章:播放或捕获音频声音。发送和接收多播(RTP)[ ^ ]。



BASS库(免费用于非商业用途)是非常强大的库,适用于所有类型的声音操作和播放[ ^ ]。 C#中有一个.NET API示例:[ ^ ]。
There are many resources on CodeProject for C# code to record sound. Here's a recent (April, 2014) article: "Play or Capture Audio Sound. Send and Receive as Multicast (RTP)" [^].

The BASS library (free for non-commercial use) is very powerful library for all types of sound manipulation, and playback [^]. There is a .NET API available with examples in C#: [^].


术语USB音频类是误导你的项目。声音来自哪种类型的外部/内部连接并不重要。另外,通过USB连接的外部声卡就是:声卡。因此,只需用您首选的编程语言查找有关录音录音的任何教程 - 省略USB,因为它无关紧要。
The term "USB audio class" is the item which mislead you. It is not at all important from which type of external/internal connection the sound comes from. Also an external sound card connected via USB is simply: a sound card. So just look for any tutorial on audion recording in your preferred programming language - omit that "USB" because it is irrelevant.


这篇关于如何从USB音频类读取数据?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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