Browse Source

Only show relevant formats in wasm builds

Signed-off-by: falkTX <falktx@falktx.com>
main
falkTX 5 months ago
parent
commit
3ea5e4b5a2
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
4 changed files with 19 additions and 3 deletions
  1. +1
    -1
      carla
  2. +1
    -1
      dpf
  3. +1
    -1
      dpf-widgets
  4. +16
    -0
      plugins/Common/IldaeilUI.cpp

+ 1
- 1
carla

@@ -1 +1 @@
Subproject commit 31c97d211808a20d0b5ade0612bcd09e0f31785d
Subproject commit 034d0c4242ba834e0b5a8967a5eefedf9d97178c

+ 1
- 1
dpf

@@ -1 +1 @@
Subproject commit 79e5339bef455583a4b5762addfd6578d4230f05
Subproject commit 9e15427bc91d1926d44f9771c64d814fdad4cba4

+ 1
- 1
dpf-widgets

@@ -1 +1 @@
Subproject commit 6f4b094acc2c388eee48dd3b06b22449d2dc7791
Subproject commit 22a91fbfba04d48b85707730812f59faf4d6051b

+ 16
- 0
plugins/Common/IldaeilUI.cpp View File

@@ -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
}
}



Loading…
Cancel
Save