From 9b446b5d0e9b0ea8ac1927131339d982790b20ae Mon Sep 17 00:00:00 2001 From: Michael Fabian 'Xaymar' Dirks Date: Tue, 26 Jan 2021 16:56:12 +0100 Subject: [PATCH] VST_EFFECT_OPCODE_GETNAME takes a 64-byte buffer --- vst.h | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/vst.h b/vst.h index e326da6..5e9b996 100644 --- a/vst.h +++ b/vst.h @@ -17,6 +17,8 @@ #define VST_ALIGNMENT 8 #define VST_MAGICNUMBER 'VstP' +#define VST_NAME_BUFFER_SIZE 64 + #pragma pack(push, VST_ALIGNMENT) #ifdef __cplusplus @@ -202,11 +204,7 @@ enum VST_EFFECT_OPCODE { /* Retrieve the effect name into the ptr buffer. * - * History: - * - ReaComp, ReaXComp: Seems to be char[32] - * - ReaFir: Must be more than char[32], plugin is writing 47 bytes. char[48]? - * - * @param p_ptr char[48] + * @param p_ptr char[64] VST2.4 host, might be lower with earlier hosts? * @return Always 0, even on failure. */ VST_EFFECT_OPCODE_GETNAME = 0x2D,