Browse Source

Implement setProgramRT, fixing build

tags/v2.1-rc1
falkTX 5 years ago
parent
commit
c525717d25
1 changed files with 13 additions and 1 deletions
  1. +13
    -1
      source/backend/plugin/CarlaPluginJuce.cpp

+ 13
- 1
source/backend/plugin/CarlaPluginJuce.cpp View File

@@ -356,6 +356,18 @@ public:
CarlaPlugin::setProgram(index, sendGui, sendOsc, sendCallback, doingInit);
}

void setProgramRT(const uint32_t index, const bool sendCallbackLater) noexcept override
{
CARLA_SAFE_ASSERT_RETURN(fInstance != nullptr,);
CARLA_SAFE_ASSERT_RETURN(index < pData->prog.count,);

try {
fInstance->setCurrentProgram(index);
} CARLA_SAFE_EXCEPTION("setCurrentProgram");

CarlaPlugin::setProgramRT(index, sendCallbackLater);
}

// -------------------------------------------------------------------
// Set ui stuff

@@ -922,7 +934,7 @@ public:
{
if (ctrlEvent.param < pData->prog.count)
{
setProgramRT(ctrlEvent.param);
setProgramRT(ctrlEvent.param, true);
}
}
else if ((pData->options & PLUGIN_OPTION_SEND_PROGRAM_CHANGES) != 0)


Loading…
Cancel
Save