Honor VST "Synth" Category for now...
authorRobin Gareus <robin@gareus.org>
Tue, 8 Nov 2016 12:16:27 +0000 (13:16 +0100)
committerRobin Gareus <robin@gareus.org>
Tue, 8 Nov 2016 12:30:09 +0000 (13:30 +0100)
..until we find a backwards compatible way to save/load effFlagsIsSynth
in the cache info files.

libs/ardour/vst_info_file.cc

index 8993ba2b3d3df4e541c8c67df380932524365801..80d2f61a2f29faab78e2cb444d02c362a8426635 100644 (file)
@@ -302,6 +302,9 @@ vstfx_load_info_block (FILE* fp, VSTInfo *info)
 
        // TODO read isInstrument -- effFlagsIsSynth
        info->isInstrument = info->numInputs == 0 && info->numOutputs > 0 && 1 == (info->wantMidi & 1);
+       if (!strcmp (info->Category, "Synth")) {
+               info->isInstrument = true;
+       }
 
        if ((info->numParams) == 0) {
                info->ParamNames = NULL;