开发者

Audio capturing in C#

I have a MAYA 44 USB sound card and would like to interface it with C#. I want to record from the provided microphones and produce a data array. I have found examples when us开发者_高级运维ing the internal sound card from my laptop but when it comes to external it does not quite work. Has anyone every connected the above sound card with C# please?


Have you had a look at the DirectSound API (Windows only though, I think). Might provide what you're after.


On how to record audio with C# in general there are already multiple threads on SO, so I won't talk about that.

I see two possible causes for your program which have different solutions:

  1. You need to change which audio sources are muted in the windows volume control ("sndvol32.exe /R")
  2. When opening the audio device there are multiple devices. And you're simply opening device 0 instead of enumerating them and perhaps choosing another one. The external sound-card might appear as a second device.
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜