Introduce "virtual" async MIDI ports
authorRobin Gareus <robin@gareus.org>
Sun, 23 Oct 2016 20:25:40 +0000 (22:25 +0200)
committerRobin Gareus <robin@gareus.org>
Sun, 23 Oct 2016 20:25:40 +0000 (22:25 +0200)
commit57d1f68cd6ef3b55fd43462b92dbed91b7c250ac
treee1168cc7b4bc0532728b2fa3b9b5504e7151b2aa
parent7e861bd12e345073c8e86bf08bbc0f103be323c7
Introduce "virtual" async MIDI ports

This allows to flush an async MIDI port's ringbuffer at cycle-start,
to makes its data available as "input/source" during process(), while
collecting data in the background for the next cycle.

This facilitates virtual MIDI Ports for eg. Control Surface Pads:
output from a surface, input to Ardour channels.
libs/ardour/ardour/async_midi_port.h
libs/ardour/async_midi_port.cc