现在说一下录音的过程
windows都帮我们做好了一切,确实很方便,但有时候感觉是一种悲哀,由于一直做应用,心里有一种说不出来的感觉,算了,不感慨了
当前这里只是介绍了几个函数,其他没有怎么看,希望高手给予指导
1.建立线程接收消息CreateThread、_beginthread
2.打开设备waveInOpen,使用方式同waveOutOpen,并使用接收线程的ID
3.准备缓冲区
1) MMRESULT waveInReset(
HWAVEIN hwi
);
停止接收数据,并重置指针
This function stops input on a specified waveform input device and resets the current position to 0. All pending buffers are marked as done and returned to the application.
2)MMRESULT waveInPrepareHeader(
HWAVEIN hwi,
LPWAVEHDR pwh,
UINT cbwh
);
3)MMRESULT waveInAddBuffer(
HWAVEIN hwi,
LPWAVEHDR pwh,
UINT cbwh
);
This function sends an input buffer to the specified waveform-audio
input device. When