|
@@ -2212,6 +2212,10 @@ protected: |
|
|
const char* const method = &argv[0]->s; |
|
|
const char* const method = &argv[0]->s; |
|
|
const char* const smName = &argv[2]->s; |
|
|
const char* const smName = &argv[2]->s; |
|
|
|
|
|
|
|
|
|
|
|
// wait max 6 secs for host to init |
|
|
|
|
|
for (int i=0; i < 60 && ! fIsReady; ++i) |
|
|
|
|
|
carla_msleep(100); |
|
|
|
|
|
|
|
|
if (std::strcmp(method, "/nsm/server/announce") == 0 && standalone.callback != nullptr) |
|
|
if (std::strcmp(method, "/nsm/server/announce") == 0 && standalone.callback != nullptr) |
|
|
standalone.callback(standalone.callbackPtr, CarlaBackend::CALLBACK_NSM_ANNOUNCE, 0, 0, 0, 0.0f, smName); |
|
|
standalone.callback(standalone.callbackPtr, CarlaBackend::CALLBACK_NSM_ANNOUNCE, 0, 0, 0, 0.0f, smName); |
|
|
|
|
|
|
|
@@ -2244,10 +2248,6 @@ protected: |
|
|
std::strcat(data, ":"); |
|
|
std::strcat(data, ":"); |
|
|
std::strcat(data, clientId); |
|
|
std::strcat(data, clientId); |
|
|
|
|
|
|
|
|
// wait max 6 secs for host to init |
|
|
|
|
|
for (int i=0; i < 60 && ! fIsReady; ++i) |
|
|
|
|
|
carla_msleep(100); |
|
|
|
|
|
|
|
|
|
|
|
fIsOpened = false; |
|
|
fIsOpened = false; |
|
|
|
|
|
|
|
|
standalone.callback(nullptr, CarlaBackend::CALLBACK_NSM_OPEN, 0, 0, 0, 0.0f, data); |
|
|
standalone.callback(nullptr, CarlaBackend::CALLBACK_NSM_OPEN, 0, 0, 0, 0.0f, data); |
|
|