Re: [PD-dev] [PD] libpd netreceive

2013-01-26 Thread Rich E
On Mon, Jan 21, 2013 at 11:30 AM, Thomas Grill g...@g.org wrote: Sorry, one more note: In libpd, sched_tick is currently calling in the PROCESS macro in the context of the audio callback (in z_libpd.c). The function sched_tick handles all timed objects (such as metro) and therefore

Re: [PD-dev] [PD] libpd netreceive

2013-01-26 Thread Miller Puckette
I'm not sure but I believe it should work if you periodically call sys_domicrosleep(0, 1) - this asks it not to sleep at all but just to poll all the FDs Pd is watching. cheers Miller On Sat, Jan 26, 2013 at 11:16:41PM -0500, Rich E wrote: On Mon, Jan 21, 2013 at 11:30 AM, Thomas Grill

Re: [PD-dev] [PD] libpd netreceive

2013-01-21 Thread Thomas Grill
Hi Peter, at least on iOS, the whole thing boils down to the patch below. I added two initialization functions to libpd_init, the first sys_findprogdir for finding the pd binary directory (actually to initialize the symbol sys_libdir which can also be done manually), and second sys_startgui to

Re: [PD-dev] [PD] libpd netreceive

2013-01-21 Thread padawa...@obiwannabe.co.uk
On 21 January 2013 at 14:57 Thomas Grill g...@g.org wrote: I am not sure whether using memory management functions in an audio callback is a problem Yikes!