teotigraphix / Framework4Bitwig

Bitwig controller API framework extensions.
GNU Lesser General Public License v3.0
58 stars 13 forks source link

OSC: Allow OscModule.connectToUdpServer to be called during runtime #245

Closed git-moss closed 4 years ago

git-moss commented 4 years ago

Currently, the connection to an OSC server/port cannot be configured since the connection has to be created on Runtime. Therefore, a generic OSC connection cannot be created. API 10 fixed that for creating an OSC server but the other direction is still broken.

Fix: Allow oscModule.connectToUdpServer to be called on runtime and add a method to close the previous connection.

Note: Sending the correct settings on startup did not fix the problem since the value is received after the initialisation phase.

git-moss commented 4 years ago

Settings can now be retrieved in init(), which fixes this issue via a restart.