At first time,this is update.This project introduces how to use waveInopen and waveOutopen to recording and play the waveform audio.This is MFC application using VC++.The purpose is to help to understand waveform audio function,so that i don't build completely a program recording.
What will you find in my demo:
1. I use C to write some function:
DoRecord(): to begin record.
DoRecord_end(): to end record
DoPlay(): to play the recording voice.
2. In function DoRecord():
I show you how to use WaveInOpen with CALLBACK_FUNCTION waveInproc. I also show you how to use waveInPrepareHeader,waveInAddBuffer and waveInStart to begin recording your voice.Specially, i introduce how to use waveInproc.
3. In fucntion DoPlay():
I show you how to use WaveOutOpen,waveOutPrepareHeader,waveOutWrite.
1) Click Record to begin recording your voice.
2) Click Record_end when you finish your recording.
3) Click Play to hear your voice.
I will add some function to allow to save your recording to a file wav. And some other function to allow to choose the format of wave audio.
I will show some other technique to use CALLBACK like CALLBACK_EVENT,CALLBACK_WINDOW or CALLBACK_THREAD to process the voice recording.
I will add some other function socket or rtp so you can transfer your recording or to voice chat with other.