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
+3
View File
@@ -75,6 +75,9 @@ Versioning](https://semver.org/spec/v2.0.0.html).
**REAPER** not working.
- Fixed an obscure issue with VST3 plugins crashing in **Ardour** on
Arch/Manjaro because of misreported parameter queue lengths.
- Fixed yabridge throwing assertion failures on serialization when using some of
the _Orchestral Tools_ Kontakt libraries in the VST2 version of Kontakt. Some
of those libraries would output more than 2048 MIDI events in a single buffer.
- Some of yabridge's socket file names contained extremely aesthetically
unpleasing trailing underscores. Begone pesky underscores!
- Fixed building with VST3 support disabled.
+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