Wenc
1st August 2013, 12:52
Hi,
I am developing a program for embedded device (Blackfin BF548). The program needs an audio recorder build in it. Currently, I am able to record sounds into an audio file. But the problem is, I cannot stop recording when I need it to. I tried QThread using the method here (http://mayaposch.wordpress.com/2011/11/01/how-to-really-truly-use-qthreads-the-full-explanation/). But the thread will only quit after while loop ends, which is never. And terminate() is a bad idea.
Any solutions?Or does anyone has similar example codes?
Please note: The embedded version of Qt I have is Qt 4.5. Thanks.
Kind regards,
Wen
I am developing a program for embedded device (Blackfin BF548). The program needs an audio recorder build in it. Currently, I am able to record sounds into an audio file. But the problem is, I cannot stop recording when I need it to. I tried QThread using the method here (http://mayaposch.wordpress.com/2011/11/01/how-to-really-truly-use-qthreads-the-full-explanation/). But the thread will only quit after while loop ends, which is never. And terminate() is a bad idea.
Any solutions?Or does anyone has similar example codes?
Please note: The embedded version of Qt I have is Qt 4.5. Thanks.
Kind regards,
Wen