From ac4572eff4458b691226366fe77d553eb6607b19 Mon Sep 17 00:00:00 2001 From: Xaymar Date: Fri, 8 Aug 2025 01:24:10 +0200 Subject: [PATCH] Host 0x2A: Plug-in requests a full refresh of information A plug-in may call this if they believe important information has changed such as the number of parameters. This seems to work together with VST_HOST_OPCODE_IO_MODIFIED. --- vst.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/vst.h b/vst.h index e7558c1..a6f35fc 100644 --- a/vst.h +++ b/vst.h @@ -783,12 +783,17 @@ enum VST_HOST_OPCODE { VST_HOST_OPCODE_29 = 0x29, - /** Request an update of the editor window. + /** Refresh everything related to the effect that called this. + * This includes things like parameters, programs, banks, windows, files, meters, streams, sample rate, block size, + * and a lot more. Anything that has to do with the effect should be refreshed when the effect calls this. * + * @note (VST 2.0+) Available from VST 2.0 onwards. */ VST_HOST_OPCODE_2A = 0x2A, /** @sa VST_HOST_OPCODE_2A */ VST_HOST_OPCODE_EDITOR_UPDATE = 0x2A, + /** @sa VST_HOST_OPCODE_2A */ + VST_HOST_OPCODE_REFRESH = 0x2A, //-------------------------------------------------------------------------------- // VST 2.1