DPF

DISTRHO Plugin Framework
Log | Files | Refs | Submodules | README | LICENSE

commit 96b8ed4ae7a60e0a518b725f56d3df3fe9f79d72
parent 8a085b3245fd81e73ab52de9d28d55e489922d97
Author: falkTX <falktx@falktx.com>
Date:   Sat, 23 Mar 2024 23:25:26 +0100

Fix VST3 compatibility with Cubase

Signed-off-by: falkTX <falktx@falktx.com>

Diffstat:
Mdistrho/src/DistrhoPluginVST3.cpp | 7++++++-
1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/distrho/src/DistrhoPluginVST3.cpp b/distrho/src/DistrhoPluginVST3.cpp @@ -4571,8 +4571,13 @@ static const char* getPluginCategories() categories = DISTRHO_PLUGIN_VST3_CATEGORIES; #elif DISTRHO_PLUGIN_IS_SYNTH categories = "Instrument"; + #else + categories = "Fx"; #endif firstInit = false; + + // An empty category is considered invalid in Cubase + DISTRHO_SAFE_ASSERT(categories.isNotEmpty()); } return categories.buffer(); @@ -4858,7 +4863,7 @@ struct dpf_factory : v3_plugin_factory_cpp { DISTRHO_NAMESPACE::strncpy_utf16(info->name, sPlugin->getName(), ARRAY_SIZE(info->name)); DISTRHO_NAMESPACE::strncpy_utf16(info->vendor, sPlugin->getMaker(), ARRAY_SIZE(info->vendor)); DISTRHO_NAMESPACE::strncpy_utf16(info->version, getPluginVersion(), ARRAY_SIZE(info->version)); - DISTRHO_NAMESPACE::strncpy_utf16(info->sdk_version, "Travesty 3.7.4", ARRAY_SIZE(info->sdk_version)); + DISTRHO_NAMESPACE::strncpy_utf16(info->sdk_version, "VST 3.7.4", ARRAY_SIZE(info->sdk_version)); if (idx == 0) {