Browse Source

Reduce excessive prints

Signed-off-by: falkTX <falktx@falktx.com>
tags/v2.3.0-RC1
falkTX 3 years ago
parent
commit
4154b61f95
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
2 changed files with 17 additions and 3 deletions
  1. +16
    -2
      source/backend/engine/CarlaEngineNative.cpp
  2. +1
    -1
      source/modules/water/files/File.cpp

+ 16
- 2
source/backend/engine/CarlaEngineNative.cpp View File

@@ -347,10 +347,24 @@ public:
fParameters[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);
{
static uint last_pluginId = pluginId;
static int last_value1 = value1;
static bool init = true;

if (init || last_pluginId != pluginId || last_value1 != value1)
{
init = false;
last_pluginId = pluginId;
last_value1 = value1;
carla_stdout("Plugin with id %d triggered parameter %d update while UI is hidden",
pluginId, value1);
}
}
}
}
break;


+ 1
- 1
source/modules/water/files/File.cpp View File

@@ -1111,7 +1111,7 @@ File File::getCurrentWorkingDirectory()
bool File::setAsCurrentWorkingDirectory() const
{
return SetCurrentDirectory (getFullPathName().toWideCharPointer()) != FALSE;
return SetCurrentDirectory (getFullPathName().toUTF8()) != FALSE;
}
bool File::isSymbolicLink() const


Loading…
Cancel
Save