xoofx / NPlug

Develop VST3 audio native plugins with .NET
Other
107 stars 8 forks source link

Controller exposes itself as additional effect to the host #5

Closed basdp closed 7 months ago

basdp commented 7 months ago

The controller exposes itself to the host as additional effect. This is because the .category value of the PClassInfo is "Audio Module Class" when scanning the VST3 file. I couldn't directly find where it goes wrong, therefor I raise an issue.

I'm trying to find the bug and raise a PR for it right now.

basdp commented 7 months ago

I've found the issue:

https://github.com/xoofx/NPlug/blob/b07104ff9a04bc97e0f6adcb5e6e0af54fd4c3db/src/NPlug/Interop/LibVst.IPluginFactory.cs#L53C1-L53C71

This code has AudioEffectCategory hardcoded, but the pluginClassInfo variable is a reference to the controller!