Hi,
On Fri, May 02, 2003 at 10:51:27AM +0200, Alexander Lenhardt wrote:
but one problem i came over is the following:
I made the audio thread shced_fifo with max priority. My GUI thread is
sched_other. To allow the GUI to rerspond, I thought i could just put the
audio thread to sleep for the playing length of the buffer (7ms). But the
minimum tick interval of the linux scheduler is 10ms and its not even sure
that the thread will sleep for exact 20ms. So how can I avoid underruns if
the timing is so unreliable?
What about simply using a bigger buffer?
But there are other things, which can delay even longer (other
applications, swapping, disk spinup etc.).
Remember, we are in a multitasking, multiuser environment here.
Regards
Ingo Oeser