From 9f84ecea0bb90e372ec944ac0f5c905414b7bbb0 Mon Sep 17 00:00:00 2001 From: bsp2 Date: Sun, 21 Oct 2018 10:35:13 +0200 Subject: [PATCH] implement audioMasterVersion (=> required by AcidBoxDEMOVST, for example) --- other/vst2_debug_host/vst2_debug_host.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/other/vst2_debug_host/vst2_debug_host.cpp b/other/vst2_debug_host/vst2_debug_host.cpp index 49714522..61aee232 100644 --- a/other/vst2_debug_host/vst2_debug_host.cpp +++ b/other/vst2_debug_host/vst2_debug_host.cpp @@ -7,6 +7,9 @@ // #define SO_PATH "../vst2_lglw_debug_plugin/debug_lglw.so" // #define SO_PATH "/usr/local/lib/vst/debug_lglw.so" #define SO_PATH "../../vst2_bin/debug_lglw.so" +// #define SO_PATH "/home/bsp/.vst/DiscoveryPro68DemoLinux/64-bit/DiscoveryPro64.so" +// #define SO_PATH "/home/bsp/.vst/AcidBoxDEMO-Linux/AcidBoxDEMOVST-x64.so" + #include @@ -107,6 +110,17 @@ static VstIntPtr VSTCALLBACK HostCallback(AEffect* effect, VstInt32 opcode, VstI (void)lastOpcode; (void)lastTimeMask; + switch(opcode) + { + default: + printf("xxx debug_host: HostCallback: unhandled opcode=%d index=%d value=%ld ptr=%p opt=%f\n", opcode, index, value, ptr, opt); + break; + + case audioMasterVersion: + result = 2400; + break; + } + return result; }