From 3ea5e4b5a2b08c5942f6e45364b6ed083aee7b75 Mon Sep 17 00:00:00 2001 From: falkTX Date: Thu, 21 Aug 2025 00:06:53 +0200 Subject: [PATCH] Only show relevant formats in wasm builds Signed-off-by: falkTX --- carla | 2 +- dpf | 2 +- dpf-widgets | 2 +- plugins/Common/IldaeilUI.cpp | 16 ++++++++++++++++ 4 files changed, 19 insertions(+), 3 deletions(-) diff --git a/carla b/carla index 31c97d2..034d0c4 160000 --- a/carla +++ b/carla @@ -1 +1 @@ -Subproject commit 31c97d211808a20d0b5ade0612bcd09e0f31785d +Subproject commit 034d0c4242ba834e0b5a8967a5eefedf9d97178c diff --git a/dpf b/dpf index 79e5339..9e15427 160000 --- a/dpf +++ b/dpf @@ -1 +1 @@ -Subproject commit 79e5339bef455583a4b5762addfd6578d4230f05 +Subproject commit 9e15427bc91d1926d44f9771c64d814fdad4cba4 diff --git a/dpf-widgets b/dpf-widgets index 6f4b094..22a91fb 160000 --- a/dpf-widgets +++ b/dpf-widgets @@ -1 +1 @@ -Subproject commit 6f4b094acc2c388eee48dd3b06b22449d2dc7791 +Subproject commit 22a91fbfba04d48b85707730812f59faf4d6051b diff --git a/plugins/Common/IldaeilUI.cpp b/plugins/Common/IldaeilUI.cpp index 029025b..eab4fb3 100644 --- a/plugins/Common/IldaeilUI.cpp +++ b/plugins/Common/IldaeilUI.cpp @@ -1590,12 +1590,16 @@ protected: { static const char* pluginTypes[] = { getPluginTypeAsString(PLUGIN_INTERNAL), + #ifndef DISTRHO_OS_WASM getPluginTypeAsString(PLUGIN_LADSPA), getPluginTypeAsString(PLUGIN_DSSI), + #endif getPluginTypeAsString(PLUGIN_LV2), + #ifndef DISTRHO_OS_WASM getPluginTypeAsString(PLUGIN_VST2), getPluginTypeAsString(PLUGIN_VST3), getPluginTypeAsString(PLUGIN_CLAP), + #endif getPluginTypeAsString(PLUGIN_JSFX), "Load from file..." }; @@ -1646,6 +1650,10 @@ protected: int current; switch (fPluginType) { + #ifdef DISTRHO_OS_WASM + case PLUGIN_JSFX: current = 2; break; + case PLUGIN_LV2: current = 1; break; + #else case PLUGIN_JSFX: current = 7; break; case PLUGIN_CLAP: current = 6; break; case PLUGIN_VST3: current = 5; break; @@ -1653,6 +1661,7 @@ protected: case PLUGIN_LV2: current = 3; break; case PLUGIN_DSSI: current = 2; break; case PLUGIN_LADSPA: current = 1; break; + #endif default: current = 0; break; } @@ -1661,6 +1670,12 @@ protected: fIdleState = kIdleChangePluginType; switch (current) { + #ifdef DISTRHO_OS_WASM + case 0: fNextPluginType = PLUGIN_INTERNAL; break; + case 1: fNextPluginType = PLUGIN_LV2; break; + case 2: fNextPluginType = PLUGIN_JSFX; break; + case 3: fNextPluginType = PLUGIN_TYPE_COUNT; break; + #else case 0: fNextPluginType = PLUGIN_INTERNAL; break; case 1: fNextPluginType = PLUGIN_LADSPA; break; case 2: fNextPluginType = PLUGIN_DSSI; break; @@ -1670,6 +1685,7 @@ protected: case 6: fNextPluginType = PLUGIN_CLAP; break; case 7: fNextPluginType = PLUGIN_JSFX; break; case 8: fNextPluginType = PLUGIN_TYPE_COUNT; break; + #endif } }