End Google Ads 201810 - BS.net 01 --> Hello. I have been able to capture audio stream using WASAPI using this sample on MSDN.

But the problem is that the sample can capture only for specified time defined as hnsBufferDuration in IAudioClient::Initialize(). After that time has elapsed, it stops capturing. How can I tweak this sample to continue capturing until I click on a button or something like that? (Perhaps using two buffers ? but I don't know how to use them).

One more thing: when this sample runs, GUI does not respond to my click events.

Thanks for any pointers.

This world is going to explode due to international politics, SOON.