[Clam-devel] Re: [Portaudio] Xruns using alsa api

Arve Knudsen aknuds-1 at broadpark.no
Thu Mar 15 15:07:00 PDT 2007


On Thu, 15 Mar 2007 09:42:29 +0100, David García Garzón  
<dgarcia at iua.upf.edu> wrote:

>
> I already solved the main xrun problem by boosting the audio thread  
> priority
> the first time the callback is called after starting the stream. I sent  
> on a
> previous mail the code i used (win32+posix). Putting that code on the
> callback is akward. Doing such boost within Portaudio could be more  
> smart. Is
> it convenient? which could be the convenient way to let the user  
> controlling
> that?

Actually there is a PA ALSA extension called  
PaAlsa_EnableRealTimeScheduling (declared in pa_linux_alsa.h). You may  
want to play with this.

Arve





More information about the clam-devel mailing list