Browse Source

Be less restrictive on the IO we can load, update readme

Signed-off-by: falkTX <falktx@falktx.com>
tags/v1.0
falkTX 4 months ago
parent
commit
5347c6eefc
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
2 changed files with 16 additions and 7 deletions
  1. +3
    -2
      README.md
  2. +13
    -5
      plugins/Common/IldaeilUI.cpp

+ 3
- 2
README.md View File

@@ -34,6 +34,8 @@ The current formats Ildaeil can work as are:
- VST3

And it can load the following plugin formats:

- Internal (from Carla)
- LV2

## Goals
@@ -45,10 +47,9 @@ Later on, in theory, should be able to load the following plugin formats:
- VST2
- VST3
- AU (macOS only)
- JSFX

Additionally the following files could eventually be loaded:

- Audio files (synced to host transport)
- MIDI files (aligned to real/wall-clock time, synced to host transport)
- SF2/3 files (through internal FluidSynth)
- SFZ files (through internal SFZero)

+ 13
- 5
plugins/Common/IldaeilUI.cpp View File

@@ -548,7 +548,8 @@ protected:

case kIdleChangePluginType:
fIdleState = kIdleNothing;
hidePluginUI(handle);
if (fPluginRunning)
hidePluginUI(handle);
fPluginSelected = -1;
if (isThreadRunning())
stopThread(-1);
@@ -648,18 +649,25 @@ protected:
if (! info->valid)
continue;

if (info->cvIns != 0 || info->cvOuts != 0)
continue;

#if DISTRHO_PLUGIN_IS_SYNTH
if (info->midiIns != 1 || (info->audioOuts != 1 && info->audioOuts != 2))
if (info->midiIns != 1 && info->audioIns != 0)
continue;
if ((info->hints & PLUGIN_IS_SYNTH) == 0x0 && info->audioIns != 0)
continue;
if ((info->hints & PLUGIN_IS_SYNTH) == 0x0)
if (info->audioOuts != 1 && info->audioOuts != 2)
continue;
#elif DISTRHO_PLUGIN_WANT_MIDI_OUTPUT
if (info->midiIns != 1 || info->midiOuts != 1)
if ((info->midiIns != 1 && info->audioIns != 0 && info->audioOuts != 0) || info->midiOuts != 1)
continue;
if (info->audioIns != 0 || info->audioOuts != 0)
continue;
#else
if (info->audioIns != 2 || info->audioOuts != 2)
if (info->audioIns != 1 && info->audioIns != 2)
continue;
if (info->audioOuts != 1 && info->audioOuts != 2)
continue;
#endif



Loading…
Cancel
Save