Skip to content

Commit

Permalink
Merge pull request #56 from hotdogaaron/validator-fix
Browse files Browse the repository at this point in the history
Fix VST Validator issue in synth-plugin example
  • Loading branch information
madronalabs authored Aug 20, 2024
2 parents f0515c8 + de801fc commit 996ed77
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples/synth-plugin/source/pluginController.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ tresult PLUGIN_API PluginController::initialize(FUnknown* context)
int newUnitID = kMIDIParamsUnitIDStart + chan;
int newParamID{0};
TextFragment unitNameText("channel", ml::textUtils::naturalNumberToText(chan + 1));
unitInfo.parentUnitId = newUnitID;
unitInfo.id = newUnitID;
unitInfo.parentUnitId = kRootUnitId;
unitInfo.programListId = Steinberg::Vst::kNoProgramListId;
unitNameSetter.fromAscii(unitNameText.getText());
addUnit(new Steinberg::Vst::Unit(unitInfo));
Expand Down

0 comments on commit 996ed77

Please sign in to comment.