This PR makes SendEventBuffer::store_events and SendEventBuffer::events public, so that SendEventBuffer can be used to feed midi input events from Plugin::process_events to Plugin::process without allocating memory each frame.
(See the adjusted fwd_midi example, which now doesn't allocate memory each frame for the midi events, but uses SendEventBuffer for midi input events.)
I also removed the (now unused) send_events_to_plugin method (which was used a while ago when SendEventBuffer was a member in PluginCache to feed midi events to Plugin::process_events).
This PR makes
SendEventBuffer::store_events
andSendEventBuffer::events
public, so thatSendEventBuffer
can be used to feed midi input events fromPlugin::process_events
toPlugin::process
without allocating memory each frame. (See the adjustedfwd_midi
example, which now doesn't allocate memory each frame for the midi events, but usesSendEventBuffer
for midi input events.)I also removed the (now unused)
send_events_to_plugin
method (which was used a while ago whenSendEventBuffer
was a member inPluginCache
to feed midi events toPlugin::process_events
).