mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-09 20:29:10 +02:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user