Implement audioMasterProcessEvents, closing #5

This allows plugins to output MIDI events.
This commit is contained in:
Robbert van der Helm
2020-05-06 01:04:20 +02:00
parent e71fd433f9
commit af060054d3
4 changed files with 62 additions and 2 deletions
+3
View File
@@ -361,6 +361,9 @@ class HostCallbackDataConverter : DefaultDataConverter {
// done inside of `passthrough_event`.
return AEffect(*plugin);
break;
case audioMasterProcessEvents:
return DynamicVstEvents(*static_cast<const VstEvents*>(data));
break;
// We detect whether an opcode should return a string by checking
// whether there's a zeroed out buffer behind the void pointer. This
// works for any host, but not all plugins zero out their buffers.