[PD-dev] Re: [PD] click- & dropEX for osx
Adam Lindsay
atl at comp.lancs.ac.uk
Tue Jan 21 19:19:17 CET 2003
I checked this in to CVS (devel_0_36) after confirming that this does
eliminate a whole bunch of dropouts. Yay!
Thanks again, Gert, and whomever else relayed this fix to you...
adam
V93r said this at Tue, 21 Jan 2003 18:00:09 +0100:
>hello pd osx'ers,
>
>i got relayed a fix for the problem of clicks&dropouts in pd, even
>when running -rt:
>
>go to src/
>
>in the file m_sched.c:
>
>put in top of file:
>
>#include </usr/include/pthread.h>
>
>after line 360 (inside method int m_scheduler(int nodacs)) add:
>
> struct sched_param param;
> int policy = SCHED_RR;
> int err;
> param.sched_priority = 80; // adjust 0 : 100
>
> err = pthread_setschedparam(pthread_self(), policy, ¶m);
>
>
>save.. recompile.. enjoy click- & dropout freeness :)
>
>best,
>gert
>
>_______________________________________________
>PD-list mailing list
>PD-list at iem.kug.ac.at
>http://iem.kug.ac.at/cgi-bin/mailman/listinfo/pd-list
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Adam T. Lindsay atl at comp.lancs.ac.uk
Computing Dept, Lancaster University +44(0)1524/594.537
Lancaster, LA1 4YR, UK Fax:+44(0)1524/593.608
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
More information about the Pd-dev
mailing list