From ff98e0490d240e1010da92460601b0e7fb5ee848 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Tue, 22 Nov 2011 01:28:34 +0000 Subject: Share VSTHandle and VSTInfo between windows/linux VSTs. git-svn-id: svn://localhost/ardour2/branches/3.0@10758 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/ardour/ardour/vst_types.h | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) (limited to 'libs/ardour/ardour/vst_types.h') diff --git a/libs/ardour/ardour/vst_types.h b/libs/ardour/ardour/vst_types.h index 5e97427d9b..f441844e2d 100644 --- a/libs/ardour/ardour/vst_types.h +++ b/libs/ardour/ardour/vst_types.h @@ -20,6 +20,8 @@ #ifndef __ardour_vst_types_h__ #define __ardour_vst_types_h__ +#include "ardour/vestige/aeffectx.h" + struct _VSTKey { /** virtual-key code, or 0 if this _VSTFXKey is a `character' key */ @@ -30,4 +32,41 @@ struct _VSTKey typedef struct _VSTKey VSTKey; +struct _VSTInfo +{ + char *name; + char *creator; + int UniqueID; + char *Category; + + int numInputs; + int numOutputs; + int numParams; + + int wantMidi; + int wantEvents; + int hasEditor; + int canProcessReplacing; + + char** ParamNames; + char** ParamLabels; +}; + +typedef struct _VSTInfo VSTInfo; + +typedef AEffect * (* main_entry_t) (audioMasterCallback); + +struct _VSTHandle +{ + void* dll; + char* name; + char* nameptr; + + main_entry_t main_entry; + + int plugincnt; +}; + +typedef struct _VSTHandle VSTHandle; + #endif -- cgit v1.2.3