i'm currently reading the documentation of MSDN to render a stream to an audio renderer.. or in other word, to play my captured data from microphone.
http://msdn.microsoft.com/en-us/library/dd316756%28v=vs.85%29.aspx
this example provides example.
My problem now is that i couldn't really understand the project flow. I currently have a different class storing the below parameters which i obtained from the capture process. these parameters will be continuously re-written as the program captures streaming audio data from the microphone.
BYTE data;
UINT32 bufferframecount;
DWORD flag;
WAVEFORMATEX *pwfx;
My question is, How does really the loadData() function works. is it suppose to grab the parameter i'm writing from capture process? how does the program sends the data to audio renderer, and play it in my speaker.