[PD] problem making an audio-thread-safe external

patrick puredata at 11h11.com
Sun Oct 18 19:20:44 CEST 2009


hi,

here's my "template" for a threaded external. i had to use pthread, 
because polling an usb device was causing glitches in pd. since i didn't 
want to have 2 instance of pd (1 for polling usb + netsend, 1 for audio 
+ netreceive) i came up with this solution. i am sure it's dirty and 
unstable, but at least no more glitches...

if anyone can tight it up, it could be a nice template for anyone who 
wants to build a thread safe external!

pat
-------------- next part --------------
A non-text attachment was scrubbed...
Name: templatethread.c
Type: text/x-csrc
Size: 3552 bytes
Desc: not available
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20091018/62eedfa7/attachment.c>


More information about the Pd-list mailing list