English 中文(简体)
需要将所有声音记录在 Windows 7 的 Naudio 声音卡中
原标题:Need to record all sounds from sound card with NAudio in Windows 7
>

需要记录音响卡中的所有声音。 因此, 将 mic+output 写入文件 。
能否在 Windows 7 中与 NAudio 库进行? 找不到任何示例, 仅找到能够从喇叭中, 而不是同时从喇叭中写入麦克风或声音的示例。
PS, 抱歉, 如果问题看起来不太好的话。 Im new to audio recording. < br/ > addissue 问到代码: < a href="http://naudio.codeplex.com/workitem/16353" rel="nofolpolt > http://naudio.codeplex.com/workitem/16353 < a/p >

最佳回答

To record sounds being played by the soundcard, you would use WASAPI in Loopback Mode. To record sounds going into the microphone you could use WASAPI capture, or any of the other microphone capture classes in NAudio.

然后您有将这两个输入内容混合在一起的略微棘手的任务。 这可能需要事先转换样本率, 并可能需要您对录音进行时间戳( 因为回回路音频可以在没有播放时包含空白 ) 。

与 NAudio, 您会将两个流转换为浮点, 然后再使用 NAudio 中的“ 混合” 波或样本提供方 混合, 然后再将此写回文件 。

所以,是的,这是可能的,我已经做过一次 之前我自己,但它确实需要你 写一小部分你自己的代码 在核心 NAUDIO图书馆之上。

问题回答

暂无回答




相关问题
Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

NSArray s, Primitive types and Boxing Oh My!

I m pretty new to the Objective-C world and I have a long history with .net/C# so naturally I m inclined to use my C# wits. Now here s the question: I feel really inclined to create some type of ...

C# Marshal / Pinvoke CBitmap?

I cannot figure out how to marshal a C++ CBitmap to a C# Bitmap or Image class. My import looks like this: [DllImport(@"test.dll", CharSet = CharSet.Unicode)] public static extern IntPtr ...

How to Use Ghostscript DLL to convert PDF to PDF/A

How to user GhostScript DLL to convert PDF to PDF/A. I know I kind of have to call the exported function of gsdll32.dll whose name is gsapi_init_with_args, but how do i pass the right arguments? BTW, ...

Linqy no matchy

Maybe it s something I m doing wrong. I m just learning Linq because I m bored. And so far so good. I made a little program and it basically just outputs all matches (foreach) into a label control. ...