Add some info prints regarding remote control

Signed-off-by: falkTX <falktx@falktx.com>
This commit is contained in:
falkTX 2021-10-23 16:09:33 +01:00
parent e83d514eb6
commit 15b6ca0397
No known key found for this signature in database
GPG key ID: CDBAA37ABC74FBA0

View file

@ -154,6 +154,7 @@ struct Initializer
plugin::initStaticPlugins();
#ifdef HAVE_LIBLO
INFO("Initializing OSC Remote control");
oscServer = lo_server_new_with_proto(REMOTE_HOST_PORT, LO_UDP, osc_error_handler);
DISTRHO_SAFE_ASSERT_RETURN(oscServer != nullptr,);
@ -162,6 +163,8 @@ struct Initializer
lo_server_add_method(oscServer, nullptr, nullptr, osc_fallback_handler, nullptr);
startThread();
#else
INFO("OSC Remote control is not enabled in this build");
#endif
}
@ -195,11 +198,15 @@ struct Initializer
#ifdef HAVE_LIBLO
void run() override
{
INFO("OSC Thread Listening for remote commands");
while (! shouldThreadExit())
{
d_msleep(200);
while (lo_server_recv_noblock(oscServer, 0) != 0) {}
}
INFO("OSC Thread Closed");
}
static void osc_error_handler(int num, const char* msg, const char* path)