Browse Source

JACK: If there's plugin programs, select the first one

gh-pages
falkTX 9 years ago
parent
commit
4fc9af74a2
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      distrho/src/DistrhoPluginJack.cpp

+ 5
- 0
distrho/src/DistrhoPluginJack.cpp View File

@@ -67,6 +67,11 @@ public:
fPortMidiIn = jack_port_register(fClient, "midi-in", JACK_DEFAULT_MIDI_TYPE, JackPortIsInput, 0);
#endif

#if DISTRHO_PLUGIN_WANT_PROGRAMS
if (fPlugin.getProgramCount() > 0)
fPlugin.setProgram(0);
#endif

if (const uint32_t count = fPlugin.getParameterCount())
{
fLastOutputValues = new float[count];


Loading…
Cancel
Save