Trying to write functions that record and play sound through WinAPI

℡╲_俬逩灬. 提交于 2019-12-08 04:14:22

Re: recording until there is no input from the microphone. Yes, prepare several buffers and call waveInAddBuffer with each of them before you WaveInStart. WaveIn will continuously and sequentially fill the buffers and return them to you as they are filled. You will need to use one of the notifications provided by WaveIn to know when a buffer has been filled. Examine the buffer data to decide when to stop. If you want to keep going then give each filled buffer back to WaveIn and it will keep filling them as long as you want.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!