From 65cf9cd78287a51d792a3b611ae6d6559ea95d76 Mon Sep 17 00:00:00 2001 From: Robbert van der Helm Date: Thu, 26 May 2022 12:57:18 +0200 Subject: [PATCH] Increase VST2 buffer and MIDI serialization limits This really, really shouldn't be needed, but some plugins do weird things. --- src/common/serialization/vst2.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/serialization/vst2.h b/src/common/serialization/vst2.h index 40164701..c435c112 100644 --- a/src/common/serialization/vst2.h +++ b/src/common/serialization/vst2.h @@ -43,7 +43,7 @@ constexpr size_t max_audio_channels = 16384; /** * The maximum number of samples in a buffer. */ -constexpr size_t max_buffer_size = 16384; +constexpr size_t max_buffer_size = 1 << 16; /** * The maximum number of MIDI events in a single `VstEvents` struct. Apparently * the Orchestral Tools Kontakt libraries output more than 2048 MIDI events per