libossia
libossia copied to clipboard
notify client when value is updated by another client
currently if two clients are connected to one device and one client send a value to that device, the other client isn't updated
it will be nice to forward value to the second client whenever it is possible
currently it is working with a QML device but not with a Pd one.
to demonstrate the issue, open one device-example.pd and two client-example.pd
could this be done easily / quickly ? this is something I need soon...
adding a for-loop here should do the trick : https://github.com/OSSIA/libossia/blob/master/OSSIA/ossia/network/oscquery/oscquery_server.cpp#L248
(same for on_WSMessage)
I tried to do it, for now you have to enable "set_echo(true)" on the oscquery server
with that : https://github.com/OSSIA/libossia/blob/master/OSSIA/ossia-pd/src/device.cpp#L207-L211 it doesn't seems to work. With device-example.pd, client-example.pd and client-example.qml Updating parameter value in device patch send it to both clients. Updating value in one of the clients send it to the device but it is not forwarded to the other client.