Browse Source

Fix bridges not sending param UI changes

tags/1.9.6
falkTX 10 years ago
parent
commit
ef36f927ff
1 changed files with 3 additions and 5 deletions
  1. +3
    -5
      source/backend/plugin/CarlaPlugin.cpp

+ 3
- 5
source/backend/plugin/CarlaPlugin.cpp View File

@@ -1150,18 +1150,16 @@ void CarlaPlugin::setParameterValue(const uint32_t parameterId, const float valu
if (sendGui && (pData->hints & PLUGIN_HAS_CUSTOM_UI) != 0)
uiParameterChange(parameterId, value);

#ifndef BUILD_BRIDGE
# ifdef HAVE_LIBLO
#if defined(HAVE_LIBLO) && ! defined(BUILD_BRIDGE)
if (sendOsc && pData->engine->isOscControlRegistered())
pData->engine->oscSend_control_set_parameter_value(pData->id, static_cast<int32_t>(parameterId), value);
# endif
#endif

if (sendCallback)
pData->engine->callback(ENGINE_CALLBACK_PARAMETER_VALUE_CHANGED, pData->id, static_cast<int>(parameterId), 0, value, nullptr);
#endif

// may be unused
return; (void)sendOsc; (void)sendCallback;
return; (void)sendOsc;
}

void CarlaPlugin::setParameterValueByRealIndex(const int32_t rindex, const float value, const bool sendGui, const bool sendOsc, const bool sendCallback) noexcept


Loading…
Cancel
Save