Re: [linux-audio-dev] General strategies for RT Audio Thread

New Message Reply About this list Date view Thread view Subject view Author view Other groups

Subject: Re: [linux-audio-dev] General strategies for RT Audio Thread
From: Ingo Oeser (ingo.oeser_AT_informatik.tu-chemnitz.de)
Date: Fri May 02 2003 - 12:58:15 EEST


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


New Message Reply About this list Date view Thread view Subject view Author view Other groups

This archive was generated by hypermail 2b28 : Fri May 02 2003 - 13:23:06 EEST