C++:
VstIntPtr function dispatcher(AEffect* e, VstInt32 opcode, VstInt32 index, VstIntPtr value,
void* ptr, float opt);
Delphi:
function dispatcher(e: PAEffect; opcode, index: VstInt32; value: VstIntPtr; ptr: pointer;
opt: Single): VstIntPtr; cdecl;
always returns 0, unless otherwise defined.
all string-pointers points to zero terminated strings.
e[ ]: = plugin receives as entry parameter
x[ ]: = plugin returns to host
dispatcher() function using opcode 58:
58. effGetVstVersion
>= VST2.0
@see AudioEffectX::getVstVersion()
x[return]: 2 = VST2.x, older versions return 0
C++ method:
VstInt32 AudioEffectX::getVstVersion()
Delphi method:
function AudioEffectX.getVstVersion: VstInt32;