Skip to content

Commit e9fcf14

Browse files
committed
Host 0x0E -> 0x0D: Missed one of the off-by-1 errors
This explains why my test code using the header wasn't working.
1 parent d23a117 commit e9fcf14

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

vst.h

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -597,8 +597,6 @@ enum VST_HOST_OPCODE {
597597

598598
VST_HOST_OPCODE_0C = 0x0C,
599599

600-
VST_HOST_OPCODE_0D = 0x0D,
601-
602600
/** Notify the host that numInputs/numOutputs/delay/numParams has changed.
603601
* Only supported if the host replies @ref VST_STATUS_TRUE to @ref VST_HOST_OPCODE_SUPPORTS query for
604602
* @ref vst_host_supports_t.acceptIOChanges.
@@ -609,9 +607,11 @@ enum VST_HOST_OPCODE {
609607
*
610608
* @return @ref VST_STATUS_TRUE if supported and handled otherwise @ref VST_STATUS_FALSE.
611609
*/
610+
VST_HOST_OPCODE_0D = 0x0D,
611+
/** @sa VST_HOST_OPCODE_0D */
612+
VST_HOST_OPCODE_IO_MODIFIED = 0x0D,
613+
612614
VST_HOST_OPCODE_0E = 0x0E,
613-
/** @sa VST_HOST_OPCODE_0E */
614-
VST_HOST_OPCODE_IO_MODIFIED = 0x0E,
615615

616616
VST_HOST_OPCODE_0F = 0x0F,
617617

@@ -691,8 +691,10 @@ enum VST_HOST_OPCODE {
691691

692692
VST_HOST_OPCODE_26 = 0x26,
693693

694+
/** Crash the host if p_ptr isn't nullptr. */
694695
VST_HOST_OPCODE_27 = 0x27,
695696

697+
/** Crash the host if p_ptr isn't nullptr. */
696698
VST_HOST_OPCODE_28 = 0x28,
697699

698700
VST_HOST_OPCODE_29 = 0x29,

0 commit comments

Comments
 (0)