Browse Source

Fix missing parameter strings in plugin bridges (name, unit)

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

+ 4
- 4
source/backend/engine/CarlaEngineBridge.cpp View File

@@ -455,19 +455,19 @@ public:
fShmNonRtServerControl.writeOpcode(kPluginBridgeNonRtServerParameterData2);
fShmNonRtServerControl.writeUInt(i);

if (plugin->getParameterName(i, bufStr))
bufStr[0] = '\0';
if (! plugin->getParameterName(i, bufStr))
std::snprintf(bufStr, STR_MAX, "Param %u", i+1);
bufStrSize = carla_fixedValue(1U, 32U, static_cast<uint32_t>(std::strlen(bufStr)));
fShmNonRtServerControl.writeUInt(bufStrSize);
fShmNonRtServerControl.writeCustomData(bufStr, bufStrSize);

if (plugin->getParameterSymbol(i, bufStr))
if (! plugin->getParameterSymbol(i, bufStr))
bufStr[0] = '\0';
bufStrSize = carla_fixedValue(1U, 64U, static_cast<uint32_t>(std::strlen(bufStr)));
fShmNonRtServerControl.writeUInt(bufStrSize);
fShmNonRtServerControl.writeCustomData(bufStr, bufStrSize);

if (plugin->getParameterUnit(i, bufStr))
if (! plugin->getParameterUnit(i, bufStr))
bufStr[0] = '\0';
bufStrSize = carla_fixedValue(1U, 32U, static_cast<uint32_t>(std::strlen(bufStr)));
fShmNonRtServerControl.writeUInt(bufStrSize);


Loading…
Cancel
Save