Skip to content

Commit

Permalink
Get the PluginClassInfo category dynamically based on the type, inste…
Browse files Browse the repository at this point in the history
…ad of always returning an AudioProcessor
  • Loading branch information
basdp committed Apr 29, 2024
1 parent 9b6de2f commit 0a5f326
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/NPlug/Interop/LibVst.IPluginFactory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ private static partial ComResult getClassInfo_ToManaged(IPluginFactory* self, in
var pluginClassInfo = Get(self).GetPluginClassInfo(index);
info->cid = pluginClassInfo.ClassId.ConvertToPlatform();
info->cardinality = pluginClassInfo.Cardinality;
CopyStringToUTF8(AudioEffectCategory, info->category, 32);
CopyStringToUTF8(GetPluginCategory(pluginClassInfo), info->category, 32);
CopyStringToUTF8(pluginClassInfo.Name, info->name, 64);
return true;
}
Expand Down

0 comments on commit 0a5f326

Please sign in to comment.