Browse Source

carla-plugin: only request UI parameter changes if UI is visible

print a note in case UI is hidden though

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

+ 6
- 1
source/backend/engine/CarlaEngineNative.cpp View File

@@ -360,7 +360,12 @@ public:
if (_getRealIndexForPluginParameter(pluginId, rindex))
{
fParameters[rindex] = valuef;
pHost->ui_parameter_changed(pHost->handle, rindex, valuef);

if (fUiServer.isPipeRunning())
pHost->ui_parameter_changed(pHost->handle, rindex, valuef);
else
carla_stdout("Plugin with id %d triggered parameter %d update while UI is hidden",
pluginId, value1);
}
}
break;


Loading…
Cancel
Save