Results 1 to 1 of 1
Hello everyone!
I am making a very simple lightweight audio/video playback engine. I have split the audio into 2 threads - one decoding (using ffmpeg), and the other playing the ...
- 07-11-2008 #1
pausing audio
Hello everyone!
I am making a very simple lightweight audio/video playback engine. I have split the audio into 2 threads - one decoding (using ffmpeg), and the other playing the audio (throught libao). I am using pthreads for threading.
Now, how can I "neatly" implement pausing playback? I have tried locking a variable and checking its condition, but that uses a lot of CPU. Would using signals be good?
Thanks.Gentoo 2.6.24 amd64
AMD Anthlon 64 X2, 2 GB RAM, Asus M2N-MX, nVidia GeForce 9600GT 512Mb, 250Gb + 160Gb HDDs


Reply With Quote