Browse Source

Set plugin dummy flag if RUNNING_UNDER_LV2LINT env var is set

pull/375/head
falkTX 3 years ago
parent
commit
7cd27b17fb
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      distrho/src/DistrhoPluginLV2.cpp

+ 3
- 0
distrho/src/DistrhoPluginLV2.cpp View File

@@ -1486,6 +1486,9 @@ static LV2_Handle lv2_instantiate(const LV2_Descriptor*, double sampleRate, cons
d_nextBundlePath = bundlePath;
d_nextCanRequestParameterValueChanges = ctrlInPortChangeReq != nullptr;

if (std::getenv("RUNNING_UNDER_LV2LINT") != nullptr)
d_nextPluginIsDummy = true;

return new PluginLv2(sampleRate, uridMap, worker, ctrlInPortChangeReq, usingNominal);
}



Loading…
Cancel
Save