Browse Source

vst-plugin: Append "FX" to plugin name if not synth

tags/1.9.5
falkTX 10 years ago
parent
commit
67898d196a
1 changed files with 16 additions and 0 deletions
  1. +16
    -0
      source/plugin/carla-vst.cpp

+ 16
- 0
source/plugin/carla-vst.cpp View File

@@ -703,9 +703,17 @@ static intptr_t vst_dispatcherCallback(AEffect* effect, int32_t opcode, int32_t
if (ptr != nullptr)
{
#ifdef CARLA_PLUGIN_PATCHBAY
# ifdef CARLA_PLUGIN_SYNTH
std::strncpy((char*)ptr, "Carla-Patchbay", 64);
# else
std::strncpy((char*)ptr, "Carla-PatchbayFX", 64);
# endif
#else
# ifdef CARLA_PLUGIN_SYNTH
std::strncpy((char*)ptr, "Carla-Rack", 64);
# else
std::strncpy((char*)ptr, "Carla-RackFX", 64);
# endif
#endif
return 1;
}
@@ -723,9 +731,17 @@ static intptr_t vst_dispatcherCallback(AEffect* effect, int32_t opcode, int32_t
if (ptr != nullptr)
{
#ifdef CARLA_PLUGIN_PATCHBAY
# ifdef CARLA_PLUGIN_SYNTH
std::strncpy((char*)ptr, "CarlaPatchbay", 32);
# else
std::strncpy((char*)ptr, "CarlaPatchbayFX", 32);
# endif
#else
# ifdef CARLA_PLUGIN_SYNTH
std::strncpy((char*)ptr, "CarlaRack", 32);
# else
std::strncpy((char*)ptr, "CarlaRackFX", 32);
# endif
#endif
return 1;
}


Loading…
Cancel
Save