From de801fcec6e7ea2483c52f331ffcb8169bacb2ed Mon Sep 17 00:00:00 2001 From: Aaron Trythall Date: Tue, 20 Aug 2024 12:33:10 -0400 Subject: [PATCH] Fix VST Validator issue in synth-plugin example --- examples/synth-plugin/source/pluginController.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/synth-plugin/source/pluginController.cpp b/examples/synth-plugin/source/pluginController.cpp index 12d810ec..14a7c374 100644 --- a/examples/synth-plugin/source/pluginController.cpp +++ b/examples/synth-plugin/source/pluginController.cpp @@ -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));