VC ++ Visual Studio中的声音处理 [英] sound processing in VC++ Visual Studio

查看:87
本文介绍了VC ++ Visual Studio中的声音处理的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

来自爱尔兰的你好。 我正试图在Visual Studio中接收并发送一些声音写一个聊天室(Skype风格),我真的很讨厌。我想知道是否有人遇到过同样的问题或有任何建议。我调用WaveOutOpen命令
并调用一个回调函数,我用它来做任何事情(我实际上用它通过一个打孔插槽将声音发送到另一台电脑)。 这是有效的。我让它在一个线程中运行。


如果我在另一个线程中侦听套接字,则不再调用回调函数(上面)。


如果我在前台打开了waveout,那就可以了。但这没什么用处。如果我在线程中都有它们,那么我只是用一个带有recvfrom或者一个select命令的套接字来监听,而waveopen不再调用它的回调。这是现场语音,但是如果我正在处理文件,我就会得到相同的症状。似乎Windows中的VC ++无法在一个线程上侦听声音并处理来自另一个线程上的麦克风或文件的声音。有人建议吗?  Peadar

解决方案

Visual Studio不会这样做。您需要在适当的论坛上发帖。


搜索VOIP的文章和库以及样本。


Hello from Ireland.  I'm trying to receive and send some voice in Visual Studio to write a chatroom (Skype style) and I'm having a real nasty. I'd like to know if anyone has run into the same issue or has any suggestions. I call the WaveOutOpen command and that calls a callback function which I use to do whatever (I'm actually using it to send voice to another computer through a holepunch socket). That works. I have it running in a thread.

If I listen on a socket in another thread, the callback function (above) is no longer called.

It works if I have the waveoutopen in the foreground but that's not much use. If I have them both in threads, then I just listen on a socket with a recvfrom or even a select command and the waveopen no longer calls its callback. This is live voice but I get the same symptoms if I am processing a file. It seems that VC++ in windows cannot listen for sound on one thread and process sound from a mike or file on another thread. Any suggestions anyone?  Peadar

解决方案

Visual Studio does not do that. You need to post in an appropriate forum.

Search for articles and libraries and samples for VOIP.


这篇关于VC ++ Visual Studio中的声音处理的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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