directsound录音
摘要:
privatevoidRecordCapturedData(SocketClient,EndPointepServer){byte[]capturedata=null;intreadpos=0,capturepos=0,locksize=0;capturebuffer.GetCurrentPosition(outcapturepos,outreadpos);locksize=readpos-iBufferOffset;//这个大小就是我们可以安全读取的大小if(locksize==0){return;}if(locksize<0){//因为我们是循环的使用缓冲区,所以有一种情况下为负:当 阅读全文
posted @ 2012-11-18 23:30 Jason_liu 阅读(205) 评论(0) 推荐(0) 编辑