From e9fcf1408be5af7d206ce42099bc556b349ecaa4 Mon Sep 17 00:00:00 2001 From: Xaymar Date: Fri, 8 Aug 2025 02:37:15 +0200 Subject: [PATCH] Host 0x0E -> 0x0D: Missed one of the off-by-1 errors This explains why my test code using the header wasn't working. --- vst.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/vst.h b/vst.h index 94f6b5d..3abf5ff 100644 --- a/vst.h +++ b/vst.h @@ -597,8 +597,6 @@ enum VST_HOST_OPCODE { VST_HOST_OPCODE_0C = 0x0C, - VST_HOST_OPCODE_0D = 0x0D, - /** Notify the host that numInputs/numOutputs/delay/numParams has changed. * Only supported if the host replies @ref VST_STATUS_TRUE to @ref VST_HOST_OPCODE_SUPPORTS query for * @ref vst_host_supports_t.acceptIOChanges. @@ -609,9 +607,11 @@ enum VST_HOST_OPCODE { * * @return @ref VST_STATUS_TRUE if supported and handled otherwise @ref VST_STATUS_FALSE. */ + VST_HOST_OPCODE_0D = 0x0D, + /** @sa VST_HOST_OPCODE_0D */ + VST_HOST_OPCODE_IO_MODIFIED = 0x0D, + VST_HOST_OPCODE_0E = 0x0E, - /** @sa VST_HOST_OPCODE_0E */ - VST_HOST_OPCODE_IO_MODIFIED = 0x0E, VST_HOST_OPCODE_0F = 0x0F, @@ -691,8 +691,10 @@ enum VST_HOST_OPCODE { VST_HOST_OPCODE_26 = 0x26, + /** Crash the host if p_ptr isn't nullptr. */ VST_HOST_OPCODE_27 = 0x27, + /** Crash the host if p_ptr isn't nullptr. */ VST_HOST_OPCODE_28 = 0x28, VST_HOST_OPCODE_29 = 0x29,