Skip to content

Commit

Permalink
Set plugin dummy flag if RUNNING_UNDER_LV2LINT env var is set
Browse files Browse the repository at this point in the history
  • Loading branch information
falkTX committed Mar 12, 2022
1 parent 6972936 commit 7cd27b1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions distrho/src/DistrhoPluginLV2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 7cd27b1

Please sign in to comment.