13
0

add support for VST plugins without any parameters

This commit is contained in:
Robin Gareus 2014-10-20 23:21:58 +02:00
parent a1245de1ba
commit 825e2c823c

View File

@ -227,6 +227,12 @@ vstfx_load_info_block(FILE* fp, VSTInfo *info)
info->wantMidi = 1;
}
if ((info->numParams) == 0) {
info->ParamNames = NULL;
info->ParamLabels = NULL;
return true;
}
if ((info->ParamNames = (char **) malloc(sizeof(char*)*info->numParams)) == 0) {
return false;
}