From b15d80ca77edadc4f65bab27ea732d73b320d0ef Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Sat, 7 Apr 2018 00:16:57 +0200 Subject: [PATCH] Fix VstParameterProperties (bug from ac03e4a93) This fixes VST parameter prop.flags (toggle, integer-step). VestigeMaxLabelLen is used in various places in libardour, most notably with effGetParamName. --- libs/ardour/ardour/vestige/aeffectx.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libs/ardour/ardour/vestige/aeffectx.h b/libs/ardour/ardour/vestige/aeffectx.h index 40356d3455..3deb426b51 100644 --- a/libs/ardour/ardour/vestige/aeffectx.h +++ b/libs/ardour/ardour/vestige/aeffectx.h @@ -235,10 +235,10 @@ typedef struct _VstEvents VstEvents; /* this struct taken from http://asseca.com/vst-24-specs/efGetParameterProperties.html */ struct _VstParameterProperties { - float stepFloat; /* float step */ - float smallStepFloat; /* small float step */ - float largeStepFloat; /* large float step */ - char label[VestigeMaxLabelLen]; /* parameter label */ + float stepFloat; /* float step */ + float smallStepFloat; /* small float step */ + float largeStepFloat; /* large float step */ + char label[64]; /* parameter label */ int32_t flags; /* @see VstParameterFlags */ int32_t minInteger; /* integer minimum */ int32_t maxInteger; /* integer maximum */