From 2d281ff2601aefcc8c4c621f7a14ea613a30758a Mon Sep 17 00:00:00 2001 From: falkTX Date: Sun, 18 Aug 2019 14:56:44 +0100 Subject: [PATCH] Export audiogain and midichannelize as lv2, remove midithrough --- source/native-plugins/_all.c | 8 ++++---- source/plugin/carla-base.cpp | 16 +++++++++------- 2 files changed, 13 insertions(+), 11 deletions(-) diff --git a/source/native-plugins/_all.c b/source/native-plugins/_all.c index 273b7c64f..ff8ec2ff7 100644 --- a/source/native-plugins/_all.c +++ b/source/native-plugins/_all.c @@ -24,14 +24,14 @@ extern void carla_register_native_plugin_audiogain(void); extern void carla_register_native_plugin_bypass(void); extern void carla_register_native_plugin_lfo(void); -extern void carla_register_native_plugin_midichanfilter(void); extern void carla_register_native_plugin_midichanab(void); +extern void carla_register_native_plugin_midichanfilter(void); +extern void carla_register_native_plugin_midichannelize(void); extern void carla_register_native_plugin_midigain(void); extern void carla_register_native_plugin_midijoin(void); extern void carla_register_native_plugin_midisplit(void); extern void carla_register_native_plugin_midithrough(void); extern void carla_register_native_plugin_miditranspose(void); -extern void carla_register_native_plugin_midichannelize(void); // Audio file extern void carla_register_native_plugin_audiofile(void); @@ -61,14 +61,14 @@ void carla_register_all_native_plugins(void) carla_register_native_plugin_audiogain(); carla_register_native_plugin_bypass(); carla_register_native_plugin_lfo(); - carla_register_native_plugin_midichanfilter(); carla_register_native_plugin_midichanab(); + carla_register_native_plugin_midichannelize(); + carla_register_native_plugin_midichanfilter(); carla_register_native_plugin_midigain(); carla_register_native_plugin_midijoin(); carla_register_native_plugin_midisplit(); carla_register_native_plugin_midithrough(); carla_register_native_plugin_miditranspose(); - carla_register_native_plugin_midichannelize(); // Audio file carla_register_native_plugin_audiofile(); diff --git a/source/plugin/carla-base.cpp b/source/plugin/carla-base.cpp index da203a624..2e3ad3199 100644 --- a/source/plugin/carla-base.cpp +++ b/source/plugin/carla-base.cpp @@ -45,13 +45,17 @@ struct PluginListManager { { const NativePluginDescriptor* const desc(carla_getNativePluginDescriptor(i)); - if (std::strcmp(desc->label, "lfo" ) == 0 || - std::strcmp(desc->label, "midichanfilter" ) == 0 || + if (std::strcmp(desc->label, "audiofile" ) == 0 || + std::strcmp(desc->label, "audiogain" ) == 0 || + std::strcmp(desc->label, "audiogain_s" ) == 0 || + std::strcmp(desc->label, "lfo" ) == 0 || std::strcmp(desc->label, "midichanab" ) == 0 || + std::strcmp(desc->label, "midichanfilter" ) == 0 || + std::strcmp(desc->label, "midichannelize" ) == 0 || + std::strcmp(desc->label, "midifile" ) == 0 || std::strcmp(desc->label, "midigain" ) == 0 || std::strcmp(desc->label, "midijoin" ) == 0 || std::strcmp(desc->label, "midisplit" ) == 0 || - std::strcmp(desc->label, "midithrough" ) == 0 || std::strcmp(desc->label, "miditranspose" ) == 0 || std::strcmp(desc->label, "midipattern" ) == 0 || std::strcmp(desc->label, "carlarack" ) == 0 || @@ -59,10 +63,8 @@ struct PluginListManager { std::strcmp(desc->label, "carlapatchbay3s" ) == 0 || std::strcmp(desc->label, "carlapatchbay16" ) == 0 || std::strcmp(desc->label, "carlapatchbay32" ) == 0 || - std::strcmp(desc->label, "bigmeter" ) == 0 || - /*std::strcmp(desc->label, "notes" ) == 0*/ - std::strcmp(desc->label, "audiofile" ) == 0 || - std::strcmp(desc->label, "midifile" ) == 0) + std::strcmp(desc->label, "bigmeter" ) == 0 + /*std::strcmp(desc->label, "notes" ) == 0*/) { descs.append(desc); }