[PD-dev] net objects in the audio thread
giuliomoro at yahoo.it
Mon Apr 4 16:19:23 CEST 2016
I just joined the list as I am working on porting libpd for the Bela platform http://bela.io . Bela uses the xenomai real-time environment and as such we need to take all the file and network I/O out of the audio thread (which sounds like a good thing anyhow), also because we run the system at small blocksizes.
Actually I got most things working, taking sys_microsleep() and the associate reading of files and sockets out from the audio thread (actually I made it available through the API, so that the application can call libpd_sys_microsleep() from a separate thread if they want to), so now I can run it at 8samples per block (1.3ms roundtrip latency) on the Beaglebone Black that powers Bela. https://github.com/giuliomoro/libpd/tree/bela
I am now looking at the [netsend] object, which still runs in the audio thread.
The notes.txt file that came with this version of pd says
>netsend separate thread
So, I want to get [netsend] out of the audio thread. As this is the first time I have a look at Pd code, I want to ask here, before I start working on it: any reason why this has not been done before?
More information about the Pd-dev