From 715752ca219986bb45ab1720a9d572b7e003c41d Mon Sep 17 00:00:00 2001 From: falkTX Date: Sun, 8 Mar 2015 12:51:32 +0100 Subject: [PATCH] Don't export midi outputs on lv2-plugin since it's not working yet --- source/plugin/carla-lv2-export.cpp | 2 ++ source/plugin/carla-lv2.cpp | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/source/plugin/carla-lv2-export.cpp b/source/plugin/carla-lv2-export.cpp index 17a44d7fe..c6a8afa39 100644 --- a/source/plugin/carla-lv2-export.cpp +++ b/source/plugin/carla-lv2-export.cpp @@ -352,6 +352,7 @@ static void writePluginFile(const NativePluginDescriptor* const pluginDesc) text += " ] , [\n"; } +#if 0 // TODO // ------------------------------------------------------------------- // MIDI outputs @@ -381,6 +382,7 @@ static void writePluginFile(const NativePluginDescriptor* const pluginDesc) else text += " ] , [\n"; } +#endif // ------------------------------------------------------------------- // Freewheel port diff --git a/source/plugin/carla-lv2.cpp b/source/plugin/carla-lv2.cpp index c3b286ac7..d8c1aca06 100644 --- a/source/plugin/carla-lv2.cpp +++ b/source/plugin/carla-lv2.cpp @@ -171,7 +171,9 @@ public: else if (fDescriptor->hints & NATIVE_PLUGIN_USES_TIME) fUI.portOffset += 1; +#if 0 // TODO fUI.portOffset += desc->midiOuts; +#endif fUI.portOffset += 1; // freewheel fUI.portOffset += desc->audioIns; fUI.portOffset += desc->audioOuts; @@ -1157,6 +1159,7 @@ private: } } +#if 0 // TODO for (uint32_t i=0; i < desc->midiOuts; ++i) { if (port == index++) @@ -1165,6 +1168,7 @@ private: return; } } +#endif if (port == index++) {