From 387e23d7ecbdc84d804e2f832e5dd0445bec4d17 Mon Sep 17 00:00:00 2001 From: Robbert van der Helm Date: Wed, 4 Aug 2021 21:16:03 +0200 Subject: [PATCH] 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 --- src/include/vestige/aeffectx.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/src/include/vestige/aeffectx.h b/src/include/vestige/aeffectx.h index 5897c052..c9897a36 100644 --- a/src/include/vestige/aeffectx.h +++ b/src/include/vestige/aeffectx.h @@ -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)];