同时录制和播放音频 [英] Recording and playing audio simultaneously

查看:93
本文介绍了同时录制和播放音频的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在想.可以在静音的情况下录制电声(或立体声混音,随便什么),同时播放录音并收听.为了进一步说明这一点,此类应用程序的用法是纠正在线视频流中大不同步的视频.这个想法是缓冲来自PC的所有声音并延迟播放(用户定义的c).因此,您将看到问题所在,原始波形必须静音,但是我们必须听到录音,而且录音机也不能录制其自己的输出.任何人都有想法,如果不进行硬件修改就可以实现吗?

Hi, I have been thinking. Would it be possible to record wave-out (or stereo-mix, whatever) while the wave-out is mute, and simultaneously play the recording and hear it. To clarify it further, the usage of such an app would be to correct the online streaming out-of-sync videos. The idea is to buffer ALL the sound from the PC and play it with a delay (user defined ofc). So, you see where the problem lies, the original wave has to be mute, but we have to hear the recording, and also the recorder must not record it''s own output. Anyone has any thoughts, would that be even possible without hardware modifications?

推荐答案

我建​​议您放弃此方法,因为它根本无法可靠地工作,并着眼于纠正编解码器你有问题.

查看DirectShow并构造过滤器图以播放媒体.那里也有过滤器间谍,使您可以看到正在播放媒体的图形组件.然后,您可以找出哪一个可能有问题,如是否存在针对该类型的更新驱动程序.
I suggest you abandon this method as it wont work reliably at all and look at correcting the codec problem you have.

Look at DirectShow and constructing filter graphs to play the media. There are also filter spys out there that will let you see the graph components that are playing the media. You can then figure out which one may have the problem as see if there are updated drivers for that type.


这篇关于同时录制和播放音频的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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