为什么waveInGetNumDevs 总是返回0?
几周前,waveInGetNumDevs
函数运行良好,但从几天前开始,它一直返回 0。我的声卡没问题,但是为什么会出现这种情况?我实际上正在尝试为 DSPACK 创建音频可视化。我不知道如何连接WaveIn
和TFilterGraph
;我什至无法处理音频输入:(
A few weeks ago waveInGetNumDevs
function was working well but since few days ago it's been returning 0 all the time. My sound card is OK but why does this happen? I'm actually trying to create an audio visualization for DSPACK. I don't know how to connect WaveIn
and TFilterGraph
; and I can't even handle the audio input :(
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
看来确实和你更新DirectX有关系。您是否尝试过在调用 waveInGetNumDevs 后调用“GetLastError”?也许您会明白为什么总是返回 0 开发者。
您还应该使用一些外部应用程序尝试音频输入本身。您可能会发现它并不完全有效,您可能只需要调整卡上的某些设置即可。
还有就是看看你的卡的驱动是否支持更新的DirectX版本!
祝你好运!
It seems indeed that it has something to do with your updating DirectX. Have you tried calling "GetLastError" after the call of waveInGetNumDevs? Maybe you will get to know why you get 0 devs returned all the time.
You should also try the audio input itself with some external app. You might find that it doesn't work altogether and you may simply need to adjust some setting on your card.
Another thing is to see if the driver of your card supports the updated DirectX version!
Good luck!