Browse Source

Support custom "/nsm/gui/client/save" for jack-apps

Signed-off-by: falkTX <falktx@falktx.com>
tags/v2.2.0-RC1
falkTX 4 years ago
parent
commit
4a7fc6dc96
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
1 changed files with 12 additions and 1 deletions
  1. +12
    -1
      source/backend/plugin/CarlaPluginJack.cpp

+ 12
- 1
source/backend/plugin/CarlaPluginJack.cpp View File

@@ -229,9 +229,12 @@ protected:
method, message, smName, features);

maybeOpenFirstTime();
return 0;
}

else if (std::strcmp(path, "/reply") == 0)
CARLA_SAFE_ASSERT_RETURN(fOscClientAddress != nullptr, 0);

if (std::strcmp(path, "/reply") == 0)
{
CARLA_SAFE_ASSERT_RETURN(std::strcmp(types, "ss") == 0, 0);

@@ -269,6 +272,14 @@ protected:
0, 0, 0.0f, nullptr);
}

// special messages
else if (std::strcmp(path, "/nsm/gui/client/save") == 0)
{
CARLA_SAFE_ASSERT_RETURN(std::strcmp(types, "s") == 0, 0);

lo_send_from(fOscClientAddress, fOscServer, LO_TT_IMMEDIATE, "/nsm/client/save", "");
}

return 0;
}
#endif


Loading…
Cancel
Save