From f676cd8883e5888e957a78541919b538414e13d9 Mon Sep 17 00:00:00 2001 From: Xaymar Date: Tue, 5 Aug 2025 01:44:50 +0200 Subject: [PATCH] Alignment for 32-bit plugins is incorrect but it's not 4 bytes --- vst.h | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/vst.h b/vst.h index 42c2803..dd5bfb6 100644 --- a/vst.h +++ b/vst.h @@ -32,7 +32,7 @@ #define VST2SDK_VST_H #define VST_FUNCTION_INTERFACE __cdecl -#define VST_ALIGNMENT 8 +#define VST_ALIGNMENT 8 // This appears to be wrong for 32-bit. But it's not 4 byte either? What. #define VST_MAGICNUMBER 'VstP' // Common VST buffer lengths: @@ -131,27 +131,32 @@ enum VST_EFFECT_OPCODE { /* Set Program * - * + * Seems to be for presets? */ VST_EFFECT_OPCODE_02 = 0x02, + VST_EFFECT_OPCODE_SET_PROGRAM = 0x02, /* Get Program * - * + * Seems to be for presets? + * @return The currently set program number. */ VST_EFFECT_OPCODE_03 = 0x03, + VST_EFFECT_OPCODE_GET_PROGRAM = 0x03, /* Set Program Name * - * + * @param */ VST_EFFECT_OPCODE_04 = 0x04, + VST_EFFECT_OPCODE_SET_PROGRAM_NAME = 0x04, /* Get Program Name * - * "Returns 0. If ptr is valid, sets the first byte of ptr to 0 then returns 0." + * @param p_ptr `char[] */ VST_EFFECT_OPCODE_05 = 0x05, + VST_EFFECT_OPCODE_GET_PROGRAM_NAME = 0x05, /* Get the value? label for the parameter. *