- Edited
hello,
I implemented a properly threaded [netreceive]
. It works for UDP (-u
) and with or without -b
. No TCP at the moment.
Pd's original object would check for new data on the socket from within the audio thread (pure evil!), this one checks for new data in a separate thread (which is handled by the Bela program, so you will need a new default_libpd_render.cpp
to account for this ) and adds the data to a ring buffer. It then requires a bang
in order to output its data. Upon bang
, it reads from the thread-safe ringbuffer and outputs the data.
Let me know if you want to access this version or you prefer to wait till I implement an "auto-timer" so that you do not need to bang
it (and it goes back to being fully compatible with the "regular" [netreceive]
)
Note: this [netsend] requires a `bang` to poll for received data