[PlanetCCRMA] Patch for pd

Fernando Pablo Lopez-Lezcano nando@ccrma.Stanford.EDU
Tue Jan 20 16:58:01 2004


> If you may recall, I was having trouble with pd and using both the -rt
> and -jack flags (it would lock up).  This issue has apparently been
> solved over on the pd-list with a simple patch (included below), which
> is now also in the latest pd cvs.  Thought it might useful for you!

Yes, indeed! Thanks for the warning and the patch... I currently have
2745 unread messages in my pd mailbox, it is impossible to keep up
(every once in a while I search for "planet" there but that's all I can
seem to do :-)

I'll see if I can release another patch release of pd soon... Somebody
else was having problems with hslider, I wonder if the latest cvs solves
that as well...

-- Fernando

> ---Patch:
> 
> diff -Naur pd-0.37.0-cvs/src/s_inter.c pd-0.37.0-cvs-fix/src/s_inter.c
> --- pd-0.37.0-cvs/src/s_inter.c	2003-11-24 08:27:49.000000000 -0800
> +++ pd-0.37.0-cvs-fix/src/s_inter.c	2004-01-20 16:32:44.000000000 -0800
> @@ -503,7 +503,7 @@
>      int p1 ,p2, p3;
>      p1 = sched_get_priority_min(SCHED_FIFO);
>      p2 = sched_get_priority_max(SCHED_FIFO);
> -    p3 = (higher ? p2 - 1 : p2 - 3);
> +    p3 = (higher ? p1 + 3 : p1 + 1);
>      par.sched_priority = p3;
>      if (sched_setscheduler(0,SCHED_FIFO,&par) != -1)
>         fprintf(stderr, "priority %d scheduling enabled.\n", p3);
> 
> 
> _______________________________________________
> PlanetCCRMA mailing list
> PlanetCCRMA@ccrma.stanford.edu
> http://ccrma-mail.stanford.edu/mailman/listinfo/planetccrma