[PlanetCCRMA] Patch for pd
J. Scott Amort
jsamort at shaw.ca
Tue Jan 20 16:49:02 PST 2004
Hi Fernando,
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!
Regards,
Scott
---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);
More information about the PlanetCCRMA
mailing list