From 67898d196ad3e86afcb0c6c5710e936d0f129abf Mon Sep 17 00:00:00 2001 From: falkTX Date: Sun, 12 Oct 2014 22:09:44 +0100 Subject: [PATCH] vst-plugin: Append "FX" to plugin name if not synth --- source/plugin/carla-vst.cpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/source/plugin/carla-vst.cpp b/source/plugin/carla-vst.cpp index 79559e529..410fa67bb 100644 --- a/source/plugin/carla-vst.cpp +++ b/source/plugin/carla-vst.cpp @@ -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; }