Add some info prints regarding remote control
Signed-off-by: falkTX <falktx@falktx.com>
This commit is contained in:
parent
e83d514eb6
commit
15b6ca0397
1 changed files with 7 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue