المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Captur Audio Using WASAPI



C++ Programming
11-03-2013, 06:02 PM
Hello. I have been able to capture audio stream using WASAPI using this (http://msdn.microsoft.com/en-us/library/windows/desktop/dd370800(v=vs.85).aspx) 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.