Include types for VST2 SysEx messages

Apparently there is a copy of the VeSTige headers that includes this.
Taken from:

https://github.com/x42/lv2vst/blob/30a669a021812da05258519cef9d4202f5ce26c3/include/vestige.h
This commit is contained in:
Robbert van der Helm
2021-08-04 21:16:03 +02:00
parent 9c334dd488
commit 387e23d7ec
+17
View File
@@ -165,6 +165,9 @@ const int effStopProcess = 72;
const int kEffectMagic = CCONST('V', 's', 't', 'P');
const int kVstLangEnglish = 1;
const int kVstMidiType = 1;
// From
// https://github.com/x42/lv2vst/blob/30a669a021812da05258519cef9d4202f5ce26c3/include/vestige.h#L139
const int kVstSysExType = 6;
const int kVstNanosValid = 1 << 8;
const int kVstPpqPosValid = 1 << 9;
@@ -207,6 +210,20 @@ class VstMidiEvent {
char reserved2;
};
// SysEx events weren't in Audacity's VeSTige implementation, so these are from
// https://github.com/x42/lv2vst/blob/30a669a021812da05258519cef9d4202f5ce26c3/include/vestige.h#L188
class VstMidiSysExEvent {
public:
int type;
int byteSize;
int deltaFrames;
int flags;
int dumpBytes;
void* reserved1;
char* sysexDump;
void* reserved2;
};
class VstEvent {
public:
char dump[sizeof(VstMidiEvent)];