Broadcasting OSC
Up to Development Discussion
Hi!
I was wondering if the Make could broadcast OSC messages instead of only replying, or would there be another way to send OSC to multiple computers?
Have a look in osc.c for something like Osc_SetReplyAddress(). If you change that to 255.255.255.255 then you should be able to broadcast your messages.
OK great! so the OSC reply adress function looks like this:
int Osc_SetReplyAddress( int channel, int replyAddress )
but I'm not sure what the OSC channel is, and the reply address is one integer instead of 4. Setting both to 255 didn't seem to work.
There's an IP_ADDRESS() macro that takes 4 ints and spits out a single int. THe OSC channel corresponds to UDP or USB - UDP is 0, as I recall...
The code always works when placed in the main task loop, but when placed in the initialisation commands, like right after Network_SetActive( true ); it will work for a few seconds, I suspect that the replyaddress gets overwritten somewhere.
Powered by
Ploneboard

