Browse Source

Add some info prints regarding remote control

Signed-off-by: falkTX <falktx@falktx.com>
tags/22.02
falkTX 3 years ago
parent
commit
15b6ca0397
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
1 changed files with 7 additions and 0 deletions
  1. +7
    -0
      src/CardinalPlugin.cpp

+ 7
- 0
src/CardinalPlugin.cpp 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)


Loading…
Cancel
Save