作者StubbornLin (Victor)
看板GameDesign
标题Re: [程式] 如何撷取"麦克风"音量输入大小(DirectS …
时间Mon Jun 15 21:07:18 2009
DirectShow是pipeline的设计
要截取麦克风的波形
大概像这样
DirectSound Source -> Sample Grabber -> Null Renderer
Sample Grabber可以设定callback来接audio的samples
不过小心dead lock 或race condition等问题
因为它是从某个thread呼叫你设定的callback
--
哇咧咧 创意投票系统
http://walele.com
易记学 程式设计教学
http://ez2learn.com/
易记学 程式设计讨论区
http://forum.ez2learn.com
VICTOR's 个人Blog
http://blog.ez2learn.com/
财报分析王
http://victorlin.serveftp.org/stock/
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 118.170.84.161