用C Windows虚拟麦克风 [英] Windows virtual microphone in C

查看:2137
本文介绍了用C Windows虚拟麦克风的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我问过类似的问题,前一段时间,但我不很懂,所以我不能足够具体。

I asked a similar question a while ago but I didn't know very much, so I wasn't able to be specific enough.

我想编写一个程序,它的输入从我的麦克风,处理它,然后将输出发送到一个假的虚拟麦克风,如果我创建了处理的声音是一个麦克风被听到的。那么我想能够使用该虚拟麦克风与支持你的选择麦克风输入(pretty任何得多写得很好的软件)作为有效麦克风的任何应用程序。那么,什么应用听到将是我处理的麦克风输入的版本。

I want to write a program that takes input from my microphone, processes it, and then sends the output to a fake "virtual microphone" as if the processed sound I created was what a microphone was hearing. I would then like to be able to use this virtual microphone with any application that supports choosing your microphone input (pretty much any well written software) as a valid microphone. So what the application "hears" will be my processed version of the microphone input.

我与Portaudio在C工作,我可以从麦克风,捕捉过程,并发送至扬声器就好了。现在,我需要更换我真正​​的扬声器与麦克风假的应用程序。窗口似乎有此某些API。
http://msdn.microsoft.com/en-us/library/windows/hardware/ff536201%28v=vs.85%29.aspx
所以,我的脚下沉将是真正的麦克风,我将不得不创建一个新的源引脚,应该是其他应用程序可见。我将如何去这样做呢?我很难找到code样品或真的连任何内容非常丰富的文档。

I'm working with Portaudio in C and I can capture from the mic, process, and send out to the speakers just fine. Now I need to replace my real speakers in the application with the phony microphone. Windows seems to have some APIs for this. http://msdn.microsoft.com/en-us/library/windows/hardware/ff536201%28v=vs.85%29.aspx So my sink pin will be the real microphone and I will have to create a NEW source pin that should be visible to other applications. How would I go about doing this? I'm having difficulty finding code samples or really even any very informative documentation.

语言:C
操作系统:Windows 7

Language: C OS: Windows 7

推荐答案

有可能使用的Windows立体声混音。然后,你可以在环回模式打开虚拟设备,记录下麦克风与编程听到

It is possible to use the Windows Stereo Mix for that. Then you can open the virtual device in loopback mode and record what the microphone hears with programming

这篇关于用C Windows虚拟麦克风的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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