add support for VST plugins without any parameters
This commit is contained in:
parent
a1245de1ba
commit
825e2c823c
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user