Increase MIDI event count limits for VST2

This really shouldn't be needed, but apparently there are plugins that
output more than 2048 events per buffer.

https://github.com/robbert-vdh/yabridge/issues/35#issuecomment-1138176117
This commit is contained in:
Robbert van der Helm
2022-05-26 12:56:35 +02:00
parent 78858b98f7
commit 39605ef465
2 changed files with 7 additions and 2 deletions
+4 -2
View File
@@ -45,9 +45,11 @@ constexpr size_t max_audio_channels = 16384;
*/
constexpr size_t max_buffer_size = 16384;
/**
* The maximum number of MIDI events in a single `VstEvents` struct.
* The maximum number of MIDI events in a single `VstEvents` struct. Apparently
* the Orchestral Tools Kontakt libraries output more than 2048 MIDI events per
* buffer, which sounds kinda intense, so hopefully this is enough.
*/
constexpr size_t max_midi_events = max_buffer_size / sizeof(size_t);
constexpr size_t max_midi_events = max_buffer_size;
/**
* The maximum size in bytes of a string or buffer passed through a void pointer
* in one of the dispatch functions. This is used to create buffers for plugins