Browse Source

Fix LV2 parameter offset for plugins with extra audio buses

Signed-off-by: falkTX <falktx@falktx.com>
master
falkTX 3 months ago
parent
commit
2131ac41ee
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
1 changed files with 5 additions and 4 deletions
  1. +5
    -4
      libs/juce-current/source/modules/juce_audio_plugin_client/LV2/juce_LV2_Wrapper.cpp

+ 5
- 4
libs/juce-current/source/modules/juce_audio_plugin_client/LV2/juce_LV2_Wrapper.cpp View File

@@ -396,7 +396,8 @@ public:
#endif

JuceLv2UIWrapper (AudioProcessor* filter_, LV2UI_Write_Function writeFunction_, LV2UI_Controller controller_,
LV2UI_Widget* widget, const LV2_Feature* const* features, bool isExternal_)
LV2UI_Widget* widget, const LV2_Feature* const* features, bool isExternal_,
int numInChans, int numOutChans)
: filter (filter_),
writeFunction (writeFunction_),
controller (controller_),
@@ -473,8 +474,7 @@ public:
#if JucePlugin_WantsLV2Latency
controlPortOffset += 1;
#endif
controlPortOffset += filter->getTotalNumInputChannels();
controlPortOffset += filter->getTotalNumOutputChannels();
controlPortOffset += numInChans + numOutChans;

lastProgramCount = filter->getNumPrograms();
}
@@ -1612,7 +1612,8 @@ public:
ui->resetIfNeeded (writeFunction, controller, widget, features);
else
ui = std::make_unique<JuceLv2UIWrapper> (filter.get(),
writeFunction, controller, widget, features, isExternal);
writeFunction, controller, widget, features, isExternal,
numInChans, numOutChans);

return ui.get();
}


Loading…
Cancel
Save